addshore
04/16/2025, 11:01 AMconstructor action/Lambda --then/Lambda?=null:
But I would want to be able to call it with multiple named arguments
Such as
foo --then=(::print foo) --then=(::print bar)
However this isn't possible in toit, what would the closest thing be?
Or is there an example of fluid / chained function callsaddshore
04/16/2025, 11:02 AMawaitAll
Promise (:: print "Hello")
.then (:: print "Hello again")
And got distracted by trying named arguments while realizing that this stuf of indenting doesnt work for the chainingaddshore
04/16/2025, 11:05 AMaddshore
04/16/2025, 1:19 PMPromise (:: print "Hello 1")
.then (:: print "Hello 2")
.then (:: print "Hello 3")
.then (:: print "Hello 4")
.awaitaddshore
04/16/2025, 1:21 PMfloitsch
04/17/2025, 6:13 AMPromise [
:: print "Hello 1",
:: print "Hello 2",
...
]addshore
04/17/2025, 9:40 AM