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
Is your feature request related to a problem? Please describe.
I want to use openraft with monoio.
Describe the solution you'd like
A feature flag with a MonoioAsyncRuntime available.
Additional context
I started a draft over this on #1010 but there are some issues:
is_panic & abort can be a little more complex to implement as in monoio and when you use io-uring you register to the kernel when you start reading/writing with fd. For monoio, you have to pass a Canceller. to be mapped on the operation you do on those IO to be able to have a proper cancellation.
The text was updated successfully, but these errors were encountered:
monoio is a little bit different about is_panic: AFAIK it's a single-threaded runtime(the future to run need no Send):
If it panics, the runtime just destroyed. There won't be any other task to examine the JoinHandle of the task in the destroyed runtime. And if send the JoinHandle to another thread(also another monoio runtime) to poll it with JoinHandle.await, there looks like to be some bug: it has chance to block forever:
Is your feature request related to a problem? Please describe.
I want to use
openraft
with monoio.Describe the solution you'd like
A feature flag with a
MonoioAsyncRuntime
available.Additional context
I started a draft over this on #1010 but there are some issues:
is_panic
&abort
can be a little more complex to implement as inmonoio
and when you useio-uring
you register to the kernel when you start reading/writing with fd. For monoio, you have to pass aCanceller
. to be mapped on the operation you do on those IO to be able to have a proper cancellation.The text was updated successfully, but these errors were encountered: