Repository navigation
How can we use Iroh/Irpc crate with fission #245
Replies: 2 comments 2 replies
|
You don't need to make the UI entry point a Tokio runtime. In Fission 0.14.1, the native async host already creates Tokio runtimes for registered jobs/services. For an Iroh endpoint that must stay alive, use a service, registered through
The important source detail is in the native async host: services get a multi-thread Tokio runtime with one worker and Both As a quick check, call |
|
For your follow-up about a concrete service example: there is one in the repository's integration tests, rather than the examples directory. Start with these two parts of
That test drives the host directly, so the For your Iroh case, the place to create and retain the endpoint is the async starter and runner in that example; shutdown belongs in These are source examples; I have not compiled the Iroh/mobile integration. |
Uh oh!
There was an error while loading. Please reload this page.
Iroh/Irpc crate is a great solution for building P2P apps with Rust. Iroh needsTokio runtime. How can we use Iroh/Irpc crate with fission for building both desktop and mobile apps?
All reactions