@fncts/io 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,7 +66,7 @@ export declare function size<RA, RB, EA, EB, A, B>(queue: PQueue<RA, RB, EA, EB,
|
|
66
66
|
* @tsplus getter fncts.io.Queue take
|
67
67
|
* @tsplus location "@fncts/io/Queue/api/operations"
|
68
68
|
*/
|
69
|
-
export declare function take<RA, RB, EA, EB, A, B>(queue: PQueue<RA, RB, EA, EB, A, B>):
|
69
|
+
export declare function take<RA, RB, EA, EB, A, B>(queue: PQueue<RA, RB, EA, EB, A, B>): IO<RB, EB, B>;
|
70
70
|
/**
|
71
71
|
* Removes all the values in the queue and returns the list of the values. If the queue
|
72
72
|
* is empty returns empty list.
|
@@ -94,7 +94,7 @@ export function size<RA, RB, EA, EB, A, B>(queue: PQueue<RA, RB, EA, EB, A, B>)
|
|
94
94
|
*
|
95
95
|
* @tsplus getter fncts.io.Queue take
|
96
96
|
*/
|
97
|
-
export function take<RA, RB, EA, EB, A, B>(queue: PQueue<RA, RB, EA, EB, A, B>) {
|
97
|
+
export function take<RA, RB, EA, EB, A, B>(queue: PQueue<RA, RB, EA, EB, A, B>): IO<RB, EB, B> {
|
98
98
|
concrete(queue);
|
99
99
|
return queue.take;
|
100
100
|
}
|