1
Fork 0
async-hot-reload-example/readme.md
2024-12-19 12:42:37 -05:00

9 lines
243 B
Markdown

# async hot reloading
minimal example of loading an async function from a `.so` and spawning it on the tokio executor.
the loaded library returns a
```rust
Pin<Box<dyn Future<Output = u64> + Send >>
```
which can be sent directly to tokio