Why this function is async? #1674
Unanswered
nayounsang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
PNG.load is just sync function that assigns RGB channel or size or ...(png meta data).
After load the png, this is just factory pattern code.
I haven't checked whether other embeddings are async as well.
I think this introduces overheads very slightly, but It can be confusing when trying to figure out the inner workings and flow.
Beta Was this translation helpful? Give feedback.
All reactions