summaryrefslogtreecommitdiff
path: root/ops/tests
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-11-11 05:44:53 -0800
committerGitHub <noreply@github.com>2022-11-11 19:14:53 +0530
commit5b9620df7ac655449abd2cce5292bd4669b1f211 (patch)
tree5fd028c3bc3f2963172aada45c3e56174863d2f1 /ops/tests
parentff92febb385c166744b49219ca7b3059c41ad34a (diff)
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.
Diffstat (limited to 'ops/tests')
-rw-r--r--ops/tests/compile_fail/unsupported.stderr8
1 files changed, 0 insertions, 8 deletions
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
|