Experimental
A function whose argument is a delimited continuation.
An Observable.
shift(times2 => {
const six = times2(3);
void times2(six);
}).subscribe(
(three_then_six: number): number => {
console.log(`three_then_six = ${three_then_six}`);
return three_then_six * 2;
}
);
# prints
three_then_six = 3
three_then_six = 6
Generated using TypeDoc
Construct an Observable using a (delimited) continuation-passing idiom.