combine
combine<
E,A,B>(resourceA,resourceB):Resource<E, readonly [A,B]>
Defined in: Core/Resource.ts:120
Acquires two resources in sequence and presents them as a tuple. Resources are released in reverse order: the second is released before the first.
If the second resource fails to acquire, the first is released immediately before returning the error.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”resourceA
Section titled “resourceA”Resource<E, A>
resourceB
Section titled “resourceB”Resource<E, B>
Returns
Section titled “Returns”Resource<E, readonly [A, B]>