mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
5b9620df7a
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.
10 lines
284 B
Text
10 lines
284 B
Text
=== Optimizer Dump ===
|
|
returns_result: true
|
|
has_ref_opstate: false
|
|
has_rc_opstate: true
|
|
has_fast_callback_option: true
|
|
fast_result: None
|
|
fast_parameters: [V8Value, I32, U32, Uint8Array]
|
|
transforms: {2: Transform { kind: SliceU8(true), index: 2 }}
|
|
is_async: true
|
|
fast_compatible: true
|