You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yep. I have an idea in mind on how to do it. Basically, I would like to keep both interface (sync and async). The async one is not very different:
Instead of returning a Result<Res<T>, _>, the Store::get method would return a Result<impl Future<Item = ARes<T>>, _>.
ARes would be the same as a Res but with Arc.
The missing parts are that I would like to implement an IO-bound thread instead of letting all asynchronous threads deal with the IO stuff. That’s a bit tricky, because all those threads would then be some kind of memory buffer consumers instead of paths or keys consumers. A bit tricky. :)
That's good to know, however, I would like to know if it is possible to allow to use custom executor ? Since wasm do not support threading now, which the only option are polling :(
This will be a bit tricky but with a
Future
interface, it should be okay.The text was updated successfully, but these errors were encountered: