From 5b9620df7ac655449abd2cce5292bd4669b1f211 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 11 Nov 2022 05:44:53 -0800 Subject: feat(ops): implement fast lazy async ops (#16579) Implements fast scheduling of deferred op futures. ```rs #[op(fast)] async fn op_read( state: Rc>, rid: ResourceId, buf: &mut [u8], ) -> Result { // ... } ``` The future is scheduled via a fast API call and polled by the event loop after being woken up by its waker. --- ops/tests/compile_fail/unsupported.stderr | 8 -------- 1 file changed, 8 deletions(-) (limited to 'ops/tests') diff --git a/ops/tests/compile_fail/unsupported.stderr b/ops/tests/compile_fail/unsupported.stderr index 5dccead46..85f745963 100644 --- a/ops/tests/compile_fail/unsupported.stderr +++ b/ops/tests/compile_fail/unsupported.stderr @@ -1,11 +1,3 @@ -error: fast async calls are not supported - --> tests/compile_fail/unsupported.rs:22:1 - | -22 | #[op(fast)] - | ^^^^^^^^^^^ - | - = note: this error originates in the attribute macro `op` (in Nightly builds, run with -Z macro-backtrace for more info) - error[E0277]: the trait bound `&mut FastApiCallbackOptions<'_>: Deserialize<'_>` is not satisfied --> tests/compile_fail/unsupported.rs:17:1 | -- cgit v1.2.3