M
Modular15mo ago
Tanvir

How to use Coroutine

i get some keygen errors what it is
No description
4 Replies
⚡flash⚡
⚡flash⚡15mo ago
Oh can we use await in mojo Or add one more bracket after the bracket
TeamPuzel
TeamPuzel15mo 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
TanvirOP15mo ago
thanks
Alex Kirchhoff
Alex Kirchhoff15mo 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