MCPcopy Create free account
hub / github.com/awslabs/llrt / call

Method call

modules/llrt_stream_web/src/readable/stream/algorithms.rs:30–42  ·  view source on GitHub ↗
(
        &self,
        ctx: Ctx<'js>,
        controller: ReadableStreamControllerClass<'js>,
    )

Source from the content-addressed store, hash-verified

28
29impl<'js> StartAlgorithm<'js> {
30 pub(crate) fn call(
31 &self,
32 ctx: Ctx<'js>,
33 controller: ReadableStreamControllerClass<'js>,
34 ) -> Result<Value<'js>> {
35 match self {
36 StartAlgorithm::ReturnUndefined => Ok(Value::new_undefined(ctx.clone())),
37 StartAlgorithm::Function {
38 f,
39 underlying_source,
40 } => f.call::<_, Value>((This(underlying_source.clone()), controller)),
41 }
42 }
43}
44
45type PullRustFn<'js> =

Callers 15

start_algorithmMethod · 0.45
pull_algorithmMethod · 0.45
cancel_algorithmMethod · 0.45
transfer_array_bufferFunction · 0.45
start_algorithmMethod · 0.45
pull_algorithmMethod · 0.45
cancel_algorithmMethod · 0.45
transfer_owning_chunkFunction · 0.45

Calls 6

promise_resolved_withFunction · 0.85
tee_pull_algorithmFunction · 0.85
source_pull_algorithmFunction · 0.85
tee_cancel_algorithmFunction · 0.85
source_cancel_algorithmFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected