moirai-async
Async runtime integration for the Moirai
concurrency library — the concurrent domain, distinct from the synchronous
data-parallel domain in moirai-parallel.
io—AsyncRead/AsyncWrite(signature-identical tofutures-io) withAsyncReadExt/AsyncWriteExt, plusTokioCompat/MoiraiCompatbridges.net— nativeTcpStream,TcpListener,UdpSocket, and connection pooling on Unix and Windows. Browser networking uses the WebSocket handles inmoirai-pal.fs— async file operations (read,write,File,FileOpenOptions, …), including exact cursor-preservingAsyncReadAtandAsyncLengthaccess.timer—sleep,timeout,interval,RateLimiter,TimerWheel.sync—Mutex,RwLock,Semaphore,Notify,Broadcast,Watch.executor— nativeAsyncExecutorandAsyncHandle.
[]
= "0.5"
use Duration;
async
The #[moirai_async::main] attribute (from
moirai-async-macros) rewrites
the function into a synchronous native main that builds a default
AsyncExecutor and blocks on the body.
Full documentation: https://docs.rs/moirai-async
License
Licensed under either of Apache-2.0 or MIT at your option.