Skip to main content

promises_call

Function promises_call 

Source
pub fn promises_call(
    method: &str,
    args: &[Value],
) -> Option<Result<Value, String>>
Expand description

Dispatch a timers/promises.<method> call.

setTimeout(delay[, value]) → a Promise that fulfills with value (undefined if absent) after delay ms. setImmediate([value]) → a Promise that fulfills with value on the next loop turn. Any trailing options argument (Node’s { signal, ref }) is accepted and ignored — abort/unref are not modeled.