mirror of
https://github.com/denoland/deno.git
synced 2024-12-13 11:02:19 -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
275 B
Text
10 lines
275 B
Text
=== Optimizer Dump ===
|
|
returns_result: false
|
|
has_ref_opstate: false
|
|
has_rc_opstate: false
|
|
has_fast_callback_option: false
|
|
fast_result: Some(Bool)
|
|
fast_parameters: [V8Value, V8Value]
|
|
transforms: {0: Transform { kind: V8Value, index: 0 }}
|
|
is_async: false
|
|
fast_compatible: true
|