Promise completion source
Creates a promise producer which controls the completion/rejection of the promise available through the .promise key.
Example
// This is a promise which can be awaited or passed around as a future // Then you can resolve/reject using the completion sourcepromiseCompletionSource.resolveresult// orpromiseCompletionSource.rejectnew Error'Some error' // You can also check completion