# until

```ts
function until<T>(promise: PromiseLike<T>): Operation<T>
```

It can be used to treat a promise as an operation. This function
is a replacement to the deprecated `call(promise)` function form.

### Examples
#### Example 1
```js
let response = yield* until(fetch('https://google.com'));
```
---
### Type Parameters
T


### Parameters


**promise**: PromiseLike&lt;T&gt;
### Return Type


[Operation](https://frontside.com/effection/api/v3/Operation.md)&lt;T&gt;

[View code](https://github.com/thefrontside/effection/tree/effection-v3.6.1/lib/call.ts#L206)
