feat(ops): implement fast lazy async ops (#16579)

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.
This commit is contained in:
Divy Srivastava 2022-11-11 05:44:53 -08:00 committed by GitHub
parent ff92febb38
commit 5b9620df7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 355 additions and 56 deletions

View file

@ -120,6 +120,10 @@ async function clippy() {
"-A",
// https://github.com/rust-lang/rust-clippy/issues/407
"clippy::extra_unused_lifetimes",
"-A",
// https://github.com/rust-lang/rust-clippy/issues/7271
// False positives in core/resources.rs for lifetime elision.
"clippy::needless_lifetimes",
],
stdout: "inherit",
stderr: "inherit",