Function createControllablePromise