Skip to content
Discussion options

You must be logged in to vote

This is what I got from browsing the docs:

Users should obtain a handle from one of the Vortex runtime’s and use it to spawn new async tasks, blocking I/O tasks, CPU-heavy tasks, or to open files for reading or writing. - https://docs.rs/vortex/latest/vortex/io/runtime/struct.Handle.html

I guess you have to make a SingleThreadRuntime, then you can get its handle:

https://docs.rs/vortex/latest/vortex/io/runtime/single/struct.SingleThreadRuntime.html#method.default

https://docs.rs/vortex/latest/vortex/io/runtime/single/struct.SingleThreadRuntime.html#method.handle

I guess you use a SingleThreadRuntime handle to make a tokio handle if that's what you want. Don't see how to make a multithre…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@danking
Comment options

@duarten
Comment options

@danking
Comment options

Answer selected by duarten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants