Skip to main content

static_call

Function static_call 

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

Readable.from(iterable) / Duplex.from(iterable).

The whole point of it is that a caller attaches its data listener AFTER the call returns, so the items cannot be emitted while building the stream — this model emits data synchronously from push, and pushing here would fire every chunk into a stream nobody is listening to yet. The items are queued and drained from a microtask instead, which is the same “next tick” ordering node gives.