fix(angular): deprecate the testing utils (#14691)
This commit is contained in:
parent
8d5544e1fe
commit
1eb38ce920
@ -2,6 +2,8 @@ import type { Observable } from 'rxjs';
|
|||||||
import { first, toArray } from 'rxjs/operators';
|
import { first, toArray } from 'rxjs/operators';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$.pipe(toArray())) or lastValueFrom(obs$.pipe(toArray())).
|
||||||
|
*
|
||||||
* @whatItDoes reads all the values from an observable and returns a promise
|
* @whatItDoes reads all the values from an observable and returns a promise
|
||||||
* with an array of all values. This should be used in combination with async/await.
|
* with an array of all values. This should be used in combination with async/await.
|
||||||
*
|
*
|
||||||
@ -18,6 +20,8 @@ export function readAll<T>(o: Observable<T>): Promise<T[]> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$)
|
||||||
|
*
|
||||||
* @whatItDoes reads the first value from an observable and returns a promise
|
* @whatItDoes reads the first value from an observable and returns a promise
|
||||||
* with it. This should be used in combination with async/await.
|
* with it. This should be used in combination with async/await.
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user