Skip to content

Conversation

@almarklein
Copy link
Member

@almarklein almarklein commented Nov 25, 2025

Make use of pygfx/rendercanvas#151, so that loop detection is fully automatic, via sniffio.

This only depends on pygfx/rendercanvas#151 for code that uses .then(). So if we assume no user is using request_adapter(...loop=loop), we can safely merge this :)

@almarklein almarklein marked this pull request as ready for review November 25, 2025 14:29
@almarklein almarklein requested a review from Korijn as a code owner November 25, 2025 14:29
@almarklein
Copy link
Member Author

Looks like Github is deprecating macos_x86?

self._UNRESOLVED.add(self)

# we only care about call_soon_threadsafe, but clearer to just have a loop object
self._loop = _loop or get_running_loop()
Copy link
Collaborator

@Korijn Korijn Nov 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a little worried about the overhead of instantiating a GPUPromise though :o it seems like a bunch of time-consuming work on a potentially hot code path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants