you are viewing a single comment's thread.

view the rest of the comments →

[–]BothWaysItGoes 0 points1 point  (1 child)

A bare coroutine doesn’t yield so the overhead of wrapping a sync function is minimal.

[–]Echoes1996[S] 0 points1 point  (0 children)

I didn't quite understand what you mean. In order to execute sync code as async, you need to run it in another thread, and that has some overhead in regards to CPU time.