← Back to context

Comment by nijave

1 year ago

>it should be possible to implement functions that can be called in both sync and async contexts

You still have concurrency or interleaved execution to contend with but that could be represented more explicitly since it's not unique to async.

I haven't done much rust but implementing blocking operations as async functions is commonly achieved in Python by using threads under the hood anyway