Creates a promise that can be resolved or rejected from outside the promise.
resolve it when it's ready.
function someFunction() { const l = later<number>(); myDependency.load(l); return l.promise;} Copy
function someFunction() { const l = later<number>(); myDependency.load(l); return l.promise;}
Creates a promise that can be resolved or rejected from outside the promise.
Example: In this example someFunction will return a promise that's typed to return number and myDependency will
resolve it when it's ready.