Creates a promise object which can be completed with a value.
Creates a promise object which can be completed with a value.
the type of the value in the promise
the newly createdPromise instance
Creates an already completed Promise with the specified exception.
Creates an already completed Promise with the specified exception.
the type of the value in the promise
the newly createdPromise instance
Creates an already completed Promise with the specified result or exception.
Creates an already completed Promise with the specified result or exception.
the type of the value in the promise
the newly createdPromise instance
Creates an already completed Promise with the specified result.
Creates an already completed Promise with the specified result.
the type of the value in the promise
the newly createdPromise instance