Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How are we supposed to run coroutines? - Modular
M
Modular
•
3y ago
•
7 replies
KingMigDOR [🌐] @ FancyWorld
How are we supposed to run coroutines?
As the entry point
(the main function
) cannot be async
, is there any way to call a coroutine from a syncron context
?
Here just an easy example code what I
'm testing and trying to do
:
async
fn test():
print
(
"test"
)
fn main():
await
test()
async
fn test():
print
(
"test"
)
fn main():
await
test()
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,199
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Are coroutines executed in parallel?
M
Modular / questions
3y ago
Arena Allocated Coroutines
M
Modular / questions
16mo ago
are we fire yet
M
Modular / questions
2y ago
How run python code in mojo ?
M
Modular / questions
3y ago