4 ms·
Is there a bug in your example? You await freeze before calling whip. They can't run in any order or in parallel and must complete sequentially. pour also canno
by esprehn 7y ago
Is there a bug in your example? You await freeze before calling whip. They can't run in any order or in parallel and must complete sequentially. pour also cannot complete before whip since whip is being awaited.
That example is:
const foo = async () =>
freeze(water)
.then(ice => whip(cream)
.then(wCream => pour(liquor, ice)
.then(base => put(base, cream)
.then(cocktail => cocktail.serve()))));
- nine_k 7y agoThanks. I stand corrected.