Documentation for method then
Documentation for method then, assembled from the following types:
method then(Promise: )
Schedules a piece of code to be run after the invocant has been kept or broken, and returns a new promise for this computation. In other words, creates a chained promise.
my = Promise.in(2);my = .then();say .result; # 2 seconds are over# result