method wait
Documentation for method wait
assembled from the following types:
class Supply
From Supply
(Supply) method wait
method wait(Supply:)
Taps the Supply
it is called on, and blocks execution until the either the supply is done
(in which case it evaluates to the final value that was emitted on the Supply
, or Nil
if not value was emitted) or quit
(in which case it will throw the exception that was passed to quit
).
my = Supplier.new;start.Supply.wait;say "Two seconds: done";