mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
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:
parent
ff92febb38
commit
5b9620df7a
24 changed files with 355 additions and 56 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue