Documentation for method result

Documentation for method result, assembled from the following types:

class Promise

From Promise

(Promise) method result

method result(Promise:D)

Waits for the promise to be kept or broken. If it is kept, returns the result; otherwise throws the result as an exception.