Documentation for method result
assembled from the following pages:
Class: Promise §
From Promise
(Promise) method result §
method result(Promise:)
Waits for the promise to be kept or broken. If it is kept, returns the result; otherwise throws the result as an exception.