9 lines
243 B
Markdown
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
|