-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ops): implement fast lazy async ops #16579
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe attribute name "fast"
is misleading for async ops that can benefit from first-poll-resolution instead of a full event-loop tick. A very useless example is op_void_async
I do not think the |
@lucacasonato Reverted those changes. Instead of marking the generalized |
Maybe - but we need to take care that the |
Implements fast scheduling of deferred op futures. ```rs #[op(fast)] async fn op_read( state: Rc<RefCell<OpState>>, rid: ResourceId, buf: &mut [u8], ) -> Result<u32, Error> { // ... } ``` The future is scheduled via a fast API call and polled by the event loop after being woken up by its waker.
Depends on #16514
The future is scheduled via a fast API call and polled by the event loop after being woken up by its waker.