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/optimizer_tests/async_nop.rs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 ops/optimizer_tests/async_nop.rs (limited to 'ops/optimizer_tests/async_nop.rs') diff --git a/ops/optimizer_tests/async_nop.rs b/ops/optimizer_tests/async_nop.rs new file mode 100644 index 000000000..95a1522f1 --- /dev/null +++ b/ops/optimizer_tests/async_nop.rs @@ -0,0 +1,3 @@ +async fn op_void_async() { + // @test-attr:fast +} -- cgit v1.2.3