M
Modular14mo ago
Tanvir

How to use Coroutine

i get some keygen errors what it is
No description
4 Replies
⚡flash⚡
⚡flash⚡14mo ago
Oh can we use await in mojo Or add one more bracket after the bracket
TeamPuzel
TeamPuzel14mo ago
You can’t make main async. I was told that currently you must use mlir to continue the corourines, there’s nothing built in You’d have to implement your own executor for async to have any meaningful impact.
Tanvir
Tanvir14mo ago
thanks
Alex Kirchhoff
Alex Kirchhoff13mo ago
Yeah -- right now we do expose functionality to run your async function in a synchronous way (you can just call the Coroutine object), but we don't expose enough of the primitives to actually do anything meaningfully async yet.
Want results from more Discord servers?
Add your server