Skip to content

Are some promise functions guaranteed to complete synchronously? #260

Answered by almarklein
PJB3005 asked this question in Q&A
Discussion options

You must be logged in to vote

Good question! As I have understood it, the callback will eventually run asynchronous, but the event-loop mechanism has not been fleshed out yet.

In wgpu-py we also assume it runs synchronous for the time being:
https://github.com/pygfx/wgpu-py/blob/402961a04299a1518ac0fb7ad3dbb44636679dbb/wgpu/backends/rs.py#L280-L282

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PJB3005
Comment options

Answer selected by rajveermalviya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants