effect 4.0.0-beta.73 → 4.0.0-beta.74
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.
- package/dist/Array.d.ts +16 -16
- package/dist/Array.js +4 -4
- package/dist/Boolean.d.ts +2 -2
- package/dist/Boolean.js +2 -2
- package/dist/Channel.d.ts +63 -63
- package/dist/Channel.js +25 -25
- package/dist/Chunk.d.ts +17 -17
- package/dist/Chunk.js +5 -5
- package/dist/Context.d.ts +3 -3
- package/dist/Context.js +1 -1
- package/dist/Cron.d.ts +4 -4
- package/dist/Cron.js +4 -4
- package/dist/Deferred.d.ts +37 -37
- package/dist/Deferred.js +13 -13
- package/dist/Duration.d.ts +6 -6
- package/dist/Duration.js +2 -2
- package/dist/Effect.d.ts +58 -58
- package/dist/Effect.js +39 -39
- package/dist/Equal.d.ts +2 -2
- package/dist/Equal.js +2 -2
- package/dist/Equivalence.d.ts +1 -1
- package/dist/Equivalence.js +1 -1
- package/dist/ExecutionPlan.d.ts +2 -2
- package/dist/ExecutionPlan.js +1 -1
- package/dist/FileSystem.d.ts +6 -6
- package/dist/FileSystem.js +2 -2
- package/dist/Function.d.ts +5 -5
- package/dist/Function.js +5 -5
- package/dist/Graph.d.ts +11 -11
- package/dist/Graph.js +5 -5
- package/dist/HKT.d.ts +1 -1
- package/dist/HashMap.d.ts +3 -3
- package/dist/HashSet.d.ts +1 -1
- package/dist/Iterable.d.ts +15 -15
- package/dist/Iterable.js +5 -5
- package/dist/Layer.d.ts +16 -16
- package/dist/Layer.js +5 -5
- package/dist/Logger.d.ts +5 -5
- package/dist/Logger.js +4 -4
- package/dist/ManagedRuntime.d.ts +2 -2
- package/dist/Match.d.ts +20 -20
- package/dist/Match.js +16 -16
- package/dist/Metric.d.ts +16 -16
- package/dist/Metric.js +3 -3
- package/dist/Option.d.ts +36 -36
- package/dist/Option.js +17 -17
- package/dist/Order.d.ts +1 -1
- package/dist/Order.js +1 -1
- package/dist/Path.d.ts +1 -1
- package/dist/Path.js +1 -1
- package/dist/Pipeable.d.ts +1 -1
- package/dist/Pipeable.js +1 -1
- package/dist/Predicate.d.ts +5 -5
- package/dist/PubSub.d.ts +9 -9
- package/dist/PubSub.js +5 -5
- package/dist/Queue.d.ts +24 -24
- package/dist/Queue.js +20 -20
- package/dist/Record.d.ts +15 -15
- package/dist/Record.js +5 -5
- package/dist/Redacted.d.ts +2 -2
- package/dist/Redacted.js +1 -1
- package/dist/Ref.d.ts +6 -6
- package/dist/Ref.js +6 -6
- package/dist/RegExp.d.ts +1 -1
- package/dist/RegExp.js +1 -1
- package/dist/Request.d.ts +4 -4
- package/dist/RequestResolver.d.ts +6 -6
- package/dist/RequestResolver.js +2 -2
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +1 -1
- package/dist/Result.d.ts +18 -18
- package/dist/Result.js +11 -11
- package/dist/Schedule.d.ts +44 -44
- package/dist/Schedule.js +18 -18
- package/dist/Schema.d.ts +177 -459
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +25 -25
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +1 -1
- package/dist/SchemaGetter.d.ts +13 -13
- package/dist/SchemaGetter.js +12 -12
- package/dist/SchemaParser.d.ts +3 -3
- package/dist/SchemaParser.js +3 -3
- package/dist/Scope.d.ts +1 -1
- package/dist/Scope.js +1 -1
- package/dist/Sink.d.ts +5 -5
- package/dist/Sink.js +3 -3
- package/dist/Stream.d.ts +55 -55
- package/dist/Stream.js +21 -21
- package/dist/String.d.ts +5 -5
- package/dist/String.js +3 -3
- package/dist/Struct.d.ts +8 -8
- package/dist/Struct.js +3 -3
- package/dist/SynchronizedRef.d.ts +57 -57
- package/dist/SynchronizedRef.js +19 -19
- package/dist/Terminal.d.ts +1 -1
- package/dist/Terminal.js +1 -1
- package/dist/Tracer.d.ts +5 -5
- package/dist/Tracer.js +2 -2
- package/dist/Tuple.d.ts +14 -14
- package/dist/Tuple.js +6 -6
- package/dist/TxHashMap.d.ts +3 -3
- package/dist/TxHashSet.d.ts +1 -1
- package/dist/Unify.d.ts +7 -7
- package/dist/Unify.js +1 -1
- package/dist/testing/TestClock.d.ts +5 -5
- package/dist/testing/TestClock.js +4 -4
- package/dist/testing/TestConsole.d.ts +3 -3
- package/dist/testing/TestConsole.js +3 -3
- package/dist/unstable/ai/Chat.d.ts +2 -2
- package/dist/unstable/ai/Chat.js +2 -2
- package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +2 -2
- package/dist/unstable/ai/IdGenerator.js +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +4 -4
- package/dist/unstable/ai/LanguageModel.js +1 -1
- package/dist/unstable/ai/Prompt.d.ts +15 -15
- package/dist/unstable/ai/Prompt.js +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +5 -5
- package/dist/unstable/ai/Telemetry.js +2 -2
- package/dist/unstable/ai/Tokenizer.d.ts +1 -1
- package/dist/unstable/ai/Tokenizer.js +1 -1
- package/dist/unstable/ai/Tool.d.ts +6 -6
- package/dist/unstable/ai/Tool.js +6 -6
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +1 -1
- package/dist/unstable/cli/Primitive.d.ts +3 -3
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -11
- package/dist/unstable/cli/internal/parser.js +145 -10
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +1 -1
- package/dist/unstable/cluster/Entity.js +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
- package/dist/unstable/cluster/HttpRunner.js +2 -2
- package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +1 -1
- package/dist/unstable/cluster/Runners.d.ts +1 -1
- package/dist/unstable/cluster/Runners.js +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.js +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +5 -5
- package/dist/unstable/cluster/Snowflake.js +5 -5
- package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +1 -1
- package/dist/unstable/eventlog/EventLog.js +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
- package/dist/unstable/http/Cookies.d.ts +1 -1
- package/dist/unstable/http/Etag.d.ts +1 -1
- package/dist/unstable/http/Etag.js +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
- package/dist/unstable/http/FetchHttpClient.js +2 -2
- package/dist/unstable/http/HttpClient.d.ts +1 -1
- package/dist/unstable/http/HttpClient.js +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.js +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +1 -1
- package/dist/unstable/http/HttpPlatform.js +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +4 -4
- package/dist/unstable/http/HttpRouter.js +4 -4
- package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
- package/dist/unstable/http/Url.d.ts +33 -33
- package/dist/unstable/http/Url.js +11 -11
- package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApi.js +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
- package/dist/unstable/persistence/KeyValueStore.js +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -2
- package/dist/unstable/persistence/Persistable.js +2 -2
- package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
- package/dist/unstable/persistence/PersistedQueue.js +8 -8
- package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
- package/dist/unstable/persistence/RateLimiter.js +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +5 -5
- package/dist/unstable/process/ChildProcess.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
- package/dist/unstable/reactivity/AsyncResult.js +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +1 -1
- package/dist/unstable/reactivity/Atom.js +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
- package/dist/unstable/reactivity/Reactivity.js +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +5 -5
- package/dist/unstable/rpc/Rpc.js +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
- package/dist/unstable/rpc/RpcSchema.js +2 -2
- package/dist/unstable/schema/Model.d.ts +2 -2
- package/dist/unstable/schema/Model.js +1 -1
- package/dist/unstable/socket/Socket.d.ts +3 -3
- package/dist/unstable/socket/Socket.js +3 -3
- package/dist/unstable/socket/SocketServer.d.ts +1 -1
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/Migrator.d.ts +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +3 -3
- package/dist/unstable/sql/SqlClient.js +2 -2
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/Statement.d.ts +2 -2
- package/dist/unstable/sql/Statement.js +2 -2
- package/dist/unstable/workers/Transferable.d.ts +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workflow/Activity.d.ts +1 -1
- package/dist/unstable/workflow/Activity.js +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +16 -16
- package/src/Boolean.ts +2 -2
- package/src/Channel.ts +67 -67
- package/src/Chunk.ts +18 -18
- package/src/Context.ts +4 -4
- package/src/Cron.ts +4 -4
- package/src/Deferred.ts +37 -37
- package/src/Duration.ts +6 -6
- package/src/Effect.ts +58 -58
- package/src/Equal.ts +2 -2
- package/src/Equivalence.ts +1 -1
- package/src/ExecutionPlan.ts +2 -2
- package/src/FileSystem.ts +6 -6
- package/src/Function.ts +5 -5
- package/src/Graph.ts +11 -11
- package/src/HKT.ts +1 -1
- package/src/HashMap.ts +3 -3
- package/src/HashSet.ts +1 -1
- package/src/Iterable.ts +15 -15
- package/src/Layer.ts +16 -16
- package/src/Logger.ts +7 -7
- package/src/ManagedRuntime.ts +2 -2
- package/src/Match.ts +20 -20
- package/src/Metric.ts +20 -20
- package/src/Option.ts +36 -36
- package/src/Order.ts +1 -1
- package/src/Path.ts +1 -1
- package/src/Pipeable.ts +1 -1
- package/src/Predicate.ts +5 -5
- package/src/PubSub.ts +9 -9
- package/src/Queue.ts +24 -24
- package/src/Record.ts +15 -15
- package/src/Redacted.ts +2 -2
- package/src/Ref.ts +18 -18
- package/src/RegExp.ts +1 -1
- package/src/Request.ts +4 -4
- package/src/RequestResolver.ts +8 -8
- package/src/Resource.ts +1 -1
- package/src/Result.ts +18 -18
- package/src/Schedule.ts +45 -45
- package/src/Schema.ts +177 -459
- package/src/SchemaAST.ts +1 -1
- package/src/SchemaGetter.ts +13 -13
- package/src/SchemaParser.ts +3 -3
- package/src/Scope.ts +1 -1
- package/src/Sink.ts +5 -5
- package/src/Stream.ts +57 -57
- package/src/String.ts +5 -5
- package/src/Struct.ts +8 -8
- package/src/SynchronizedRef.ts +57 -57
- package/src/Terminal.ts +1 -1
- package/src/Tracer.ts +5 -5
- package/src/Tuple.ts +14 -14
- package/src/TxHashMap.ts +3 -3
- package/src/TxHashSet.ts +1 -1
- package/src/Unify.ts +7 -7
- package/src/testing/TestClock.ts +5 -5
- package/src/testing/TestConsole.ts +3 -3
- package/src/unstable/ai/Chat.ts +2 -2
- package/src/unstable/ai/EmbeddingModel.ts +1 -1
- package/src/unstable/ai/IdGenerator.ts +2 -2
- package/src/unstable/ai/LanguageModel.ts +4 -4
- package/src/unstable/ai/Prompt.ts +15 -15
- package/src/unstable/ai/Telemetry.ts +5 -5
- package/src/unstable/ai/Tokenizer.ts +1 -1
- package/src/unstable/ai/Tool.ts +6 -6
- package/src/unstable/cli/Command.ts +5 -1
- package/src/unstable/cli/Param.ts +1 -1
- package/src/unstable/cli/Primitive.ts +3 -3
- package/src/unstable/cli/Prompt.ts +11 -11
- package/src/unstable/cli/internal/parser.ts +204 -10
- package/src/unstable/cluster/Entity.ts +1 -1
- package/src/unstable/cluster/HttpRunner.ts +2 -2
- package/src/unstable/cluster/K8sHttpClient.ts +1 -1
- package/src/unstable/cluster/Runners.ts +1 -1
- package/src/unstable/cluster/Sharding.ts +1 -1
- package/src/unstable/cluster/SingletonAddress.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +5 -5
- package/src/unstable/devtools/DevToolsClient.ts +1 -1
- package/src/unstable/eventlog/EventLog.ts +1 -1
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogRemote.ts +1 -1
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
- package/src/unstable/http/Cookies.ts +1 -1
- package/src/unstable/http/Etag.ts +1 -1
- package/src/unstable/http/FetchHttpClient.ts +2 -2
- package/src/unstable/http/HttpClient.ts +1 -1
- package/src/unstable/http/HttpClientRequest.ts +2 -2
- package/src/unstable/http/HttpMiddleware.ts +1 -1
- package/src/unstable/http/HttpPlatform.ts +1 -1
- package/src/unstable/http/HttpRouter.ts +4 -4
- package/src/unstable/http/HttpServerResponse.ts +3 -3
- package/src/unstable/http/Url.ts +33 -33
- package/src/unstable/httpapi/HttpApi.ts +1 -1
- package/src/unstable/httpapi/HttpApiError.ts +13 -13
- package/src/unstable/observability/PrometheusMetrics.ts +4 -4
- package/src/unstable/persistence/KeyValueStore.ts +3 -3
- package/src/unstable/persistence/Persistable.ts +2 -2
- package/src/unstable/persistence/PersistedQueue.ts +8 -8
- package/src/unstable/persistence/RateLimiter.ts +1 -1
- package/src/unstable/process/ChildProcess.ts +5 -5
- package/src/unstable/reactivity/AsyncResult.ts +4 -4
- package/src/unstable/reactivity/Atom.ts +1 -1
- package/src/unstable/reactivity/AtomRegistry.ts +1 -1
- package/src/unstable/reactivity/Reactivity.ts +1 -1
- package/src/unstable/rpc/Rpc.ts +5 -5
- package/src/unstable/rpc/RpcMiddleware.ts +1 -1
- package/src/unstable/rpc/RpcSchema.ts +3 -3
- package/src/unstable/schema/Model.ts +2 -2
- package/src/unstable/socket/Socket.ts +3 -3
- package/src/unstable/socket/SocketServer.ts +1 -1
- package/src/unstable/sql/Migrator.ts +1 -1
- package/src/unstable/sql/SqlClient.ts +3 -3
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/Statement.ts +2 -2
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workflow/Activity.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +1 -1
package/dist/Channel.d.ts
CHANGED
|
@@ -2408,7 +2408,7 @@ export declare const flatten: <OutElem, OutErr, OutDone, InElem, InErr, InDone,
|
|
|
2408
2408
|
* // Outputs: 1, 2, 3, 4, 5, 6, 7, 8, 9
|
|
2409
2409
|
* ```
|
|
2410
2410
|
*
|
|
2411
|
-
* @category
|
|
2411
|
+
* @category transforming
|
|
2412
2412
|
* @since 4.0.0
|
|
2413
2413
|
*/
|
|
2414
2414
|
export declare const flattenArray: <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<ReadonlyArray<OutElem>, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>;
|
|
@@ -2421,7 +2421,7 @@ export declare const flattenArray: <OutElem, OutErr, OutDone, InElem, InErr, InD
|
|
|
2421
2421
|
* Output `Take` values are emitted as non-empty arrays. Failed `Take` values
|
|
2422
2422
|
* fail the returned channel. Done `Take` values complete the returned channel.
|
|
2423
2423
|
*
|
|
2424
|
-
* @category
|
|
2424
|
+
* @category transforming
|
|
2425
2425
|
* @since 4.0.0
|
|
2426
2426
|
*/
|
|
2427
2427
|
export declare const flattenTake: <OutElem, OutErr, OutDone, OutErr2, OutDone2, InElem, InErr, InDone, Env>(self: Channel<Take.Take<OutElem, OutErr, OutDone>, OutErr2, OutDone2, InElem, InErr, InDone, Env>) => Channel<Arr.NonEmptyReadonlyArray<OutElem>, OutErr | OutErr2, OutDone, InElem, InErr, InDone, Env>;
|
|
@@ -2451,21 +2451,21 @@ export declare const drain: <OutElem, OutErr, OutDone, InElem, InErr, InDone, En
|
|
|
2451
2451
|
/**
|
|
2452
2452
|
* Repeats this channel according to the provided schedule.
|
|
2453
2453
|
*
|
|
2454
|
-
* @category
|
|
2454
|
+
* @category repetition
|
|
2455
2455
|
* @since 4.0.0
|
|
2456
2456
|
*/
|
|
2457
2457
|
export declare const repeat: {
|
|
2458
2458
|
/**
|
|
2459
2459
|
* Repeats this channel according to the provided schedule.
|
|
2460
2460
|
*
|
|
2461
|
-
* @category
|
|
2461
|
+
* @category repetition
|
|
2462
2462
|
* @since 4.0.0
|
|
2463
2463
|
*/
|
|
2464
2464
|
<SO, OutDone, SE, SR>(schedule: Schedule.Schedule<SO, Types.NoInfer<OutDone>, SE, SR> | (($: <SO, SE, SR>(_: Schedule.Schedule<SO, NoInfer<OutDone>, SE, SR>) => Schedule.Schedule<SO, OutDone, SE, SR>) => Schedule.Schedule<SO, Types.NoInfer<OutDone>, SE, SR>)): <OutElem, OutErr, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr | SE, OutDone, InElem, InErr, InDone, Env | SR>) => Channel<OutElem, OutErr | SE, OutDone, InElem, InErr, InDone, Env | SR>;
|
|
2465
2465
|
/**
|
|
2466
2466
|
* Repeats this channel according to the provided schedule.
|
|
2467
2467
|
*
|
|
2468
|
-
* @category
|
|
2468
|
+
* @category repetition
|
|
2469
2469
|
* @since 4.0.0
|
|
2470
2470
|
*/
|
|
2471
2471
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, SO, SE, SR>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, schedule: Schedule.Schedule<SO, OutDone, SE, SR> | (($: <SO, SE, SR>(_: Schedule.Schedule<SO, NoInfer<OutDone>, SE, SR>) => Schedule.Schedule<SO, OutDone, SE, SR>) => Schedule.Schedule<SO, Types.NoInfer<OutDone>, SE, SR>)): Channel<OutElem, OutErr | SE, OutDone, InElem, InErr, InDone, Env | SR>;
|
|
@@ -2473,7 +2473,7 @@ export declare const repeat: {
|
|
|
2473
2473
|
/**
|
|
2474
2474
|
* Repeats this channel forever.
|
|
2475
2475
|
*
|
|
2476
|
-
* @category
|
|
2476
|
+
* @category repetition
|
|
2477
2477
|
* @since 4.0.0
|
|
2478
2478
|
*/
|
|
2479
2479
|
export declare const forever: <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr, never, InElem, InErr, InDone, Env>;
|
|
@@ -2488,7 +2488,7 @@ export declare const forever: <OutElem, OutErr, OutDone, InElem, InErr, InDone,
|
|
|
2488
2488
|
* fails. If the schedule finishes, the returned channel completes with the
|
|
2489
2489
|
* schedule output.
|
|
2490
2490
|
*
|
|
2491
|
-
* @category
|
|
2491
|
+
* @category sequencing
|
|
2492
2492
|
* @since 4.0.0
|
|
2493
2493
|
*/
|
|
2494
2494
|
export declare const schedule: {
|
|
@@ -2503,7 +2503,7 @@ export declare const schedule: {
|
|
|
2503
2503
|
* fails. If the schedule finishes, the returned channel completes with the
|
|
2504
2504
|
* schedule output.
|
|
2505
2505
|
*
|
|
2506
|
-
* @category
|
|
2506
|
+
* @category sequencing
|
|
2507
2507
|
* @since 4.0.0
|
|
2508
2508
|
*/
|
|
2509
2509
|
<SO, OutElem, SE, SR>(schedule: Schedule.Schedule<SO, Types.NoInfer<OutElem>, SE, SR>): <OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr | SE, OutDone, InElem, InErr, InDone, Env | SR>) => Channel<OutElem, OutErr | SE, OutDone | SO, InElem, InErr, InDone, Env | SR>;
|
|
@@ -2518,7 +2518,7 @@ export declare const schedule: {
|
|
|
2518
2518
|
* fails. If the schedule finishes, the returned channel completes with the
|
|
2519
2519
|
* schedule output.
|
|
2520
2520
|
*
|
|
2521
|
-
* @category
|
|
2521
|
+
* @category sequencing
|
|
2522
2522
|
* @since 4.0.0
|
|
2523
2523
|
*/
|
|
2524
2524
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, SO, SE, SR>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, schedule: Schedule.Schedule<SO, OutElem, SE, SR>): Channel<OutElem, OutErr | SE, OutDone | SO, InElem, InErr, InDone, Env | SR>;
|
|
@@ -4430,7 +4430,7 @@ export declare const ignoreCause: <Arg extends Channel<any, any, any, any, any,
|
|
|
4430
4430
|
* Returns a new channel that retries this channel according to the specified
|
|
4431
4431
|
* schedule whenever it fails.
|
|
4432
4432
|
*
|
|
4433
|
-
* @category
|
|
4433
|
+
* @category error handling
|
|
4434
4434
|
* @since 4.0.0
|
|
4435
4435
|
*/
|
|
4436
4436
|
export declare const retry: {
|
|
@@ -4438,7 +4438,7 @@ export declare const retry: {
|
|
|
4438
4438
|
* Returns a new channel that retries this channel according to the specified
|
|
4439
4439
|
* schedule whenever it fails.
|
|
4440
4440
|
*
|
|
4441
|
-
* @category
|
|
4441
|
+
* @category error handling
|
|
4442
4442
|
* @since 4.0.0
|
|
4443
4443
|
*/
|
|
4444
4444
|
<SO, OutErr, SE, SR>(schedule: Schedule.Schedule<SO, Types.NoInfer<OutErr>, SE, SR> | (($: <SO, SE, SR>(_: Schedule.Schedule<SO, Types.NoInfer<OutErr>, SE, SR>) => Schedule.Schedule<SO, OutErr, SE, SR>) => Schedule.Schedule<SO, Types.NoInfer<OutErr>, SE, SR>)): <OutElem, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr | SE, OutDone, InElem, InErr, InDone, Env | SR>) => Channel<OutElem, OutErr | SE, OutDone, InElem, InErr, InDone, Env | SR>;
|
|
@@ -4446,7 +4446,7 @@ export declare const retry: {
|
|
|
4446
4446
|
* Returns a new channel that retries this channel according to the specified
|
|
4447
4447
|
* schedule whenever it fails.
|
|
4448
4448
|
*
|
|
4449
|
-
* @category
|
|
4449
|
+
* @category error handling
|
|
4450
4450
|
* @since 4.0.0
|
|
4451
4451
|
*/
|
|
4452
4452
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, SO, SE, SR>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, schedule: Schedule.Schedule<SO, OutErr, SE, SR> | (($: <SO, SE, SR>(_: Schedule.Schedule<SO, Types.NoInfer<OutErr>, SE, SR>) => Schedule.Schedule<SO, OutErr, SE, SR>) => Schedule.Schedule<SO, Types.NoInfer<OutErr>, SE, SR>)): Channel<OutElem, OutErr | SE, OutDone, InElem, InErr, InDone, Env | SR>;
|
|
@@ -4591,7 +4591,7 @@ export declare const switchMap: {
|
|
|
4591
4591
|
* // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency)
|
|
4592
4592
|
* ```
|
|
4593
4593
|
*
|
|
4594
|
-
* @category
|
|
4594
|
+
* @category combining
|
|
4595
4595
|
* @since 2.0.0
|
|
4596
4596
|
*/
|
|
4597
4597
|
export declare const mergeAll: {
|
|
@@ -4623,7 +4623,7 @@ export declare const mergeAll: {
|
|
|
4623
4623
|
* // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency)
|
|
4624
4624
|
* ```
|
|
4625
4625
|
*
|
|
4626
|
-
* @category
|
|
4626
|
+
* @category combining
|
|
4627
4627
|
* @since 2.0.0
|
|
4628
4628
|
*/
|
|
4629
4629
|
(options: {
|
|
@@ -4659,7 +4659,7 @@ export declare const mergeAll: {
|
|
|
4659
4659
|
* // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency)
|
|
4660
4660
|
* ```
|
|
4661
4661
|
*
|
|
4662
|
-
* @category
|
|
4662
|
+
* @category combining
|
|
4663
4663
|
* @since 2.0.0
|
|
4664
4664
|
*/
|
|
4665
4665
|
<OutElem, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1, OutErr, OutDone, InElem, InErr, InDone, Env>(channels: Channel<Channel<OutElem, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1>, OutErr, OutDone, InElem, InErr, InDone, Env>, options: {
|
|
@@ -4713,7 +4713,7 @@ export type HaltStrategy = "left" | "right" | "both" | "either";
|
|
|
4713
4713
|
* // Order may vary: 1, "a", 2, "b", 3, "c"
|
|
4714
4714
|
* ```
|
|
4715
4715
|
*
|
|
4716
|
-
* @category
|
|
4716
|
+
* @category combining
|
|
4717
4717
|
* @since 4.0.0
|
|
4718
4718
|
*/
|
|
4719
4719
|
export declare const merge: {
|
|
@@ -4743,7 +4743,7 @@ export declare const merge: {
|
|
|
4743
4743
|
* // Order may vary: 1, "a", 2, "b", 3, "c"
|
|
4744
4744
|
* ```
|
|
4745
4745
|
*
|
|
4746
|
-
* @category
|
|
4746
|
+
* @category combining
|
|
4747
4747
|
* @since 4.0.0
|
|
4748
4748
|
*/
|
|
4749
4749
|
<OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1>(right: Channel<OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1>, options?: {
|
|
@@ -4775,7 +4775,7 @@ export declare const merge: {
|
|
|
4775
4775
|
* // Order may vary: 1, "a", 2, "b", 3, "c"
|
|
4776
4776
|
* ```
|
|
4777
4777
|
*
|
|
4778
|
-
* @category
|
|
4778
|
+
* @category combining
|
|
4779
4779
|
* @since 4.0.0
|
|
4780
4780
|
*/
|
|
4781
4781
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1>(left: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, right: Channel<OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1>, options?: {
|
|
@@ -4791,7 +4791,7 @@ export declare const merge: {
|
|
|
4791
4791
|
* The effect's successful value is ignored. If the effect fails while the
|
|
4792
4792
|
* channel is running, the returned channel fails with that error.
|
|
4793
4793
|
*
|
|
4794
|
-
* @category
|
|
4794
|
+
* @category combining
|
|
4795
4795
|
* @since 4.0.0
|
|
4796
4796
|
*/
|
|
4797
4797
|
export declare const mergeEffect: {
|
|
@@ -4804,7 +4804,7 @@ export declare const mergeEffect: {
|
|
|
4804
4804
|
* The effect's successful value is ignored. If the effect fails while the
|
|
4805
4805
|
* channel is running, the returned channel fails with that error.
|
|
4806
4806
|
*
|
|
4807
|
-
* @category
|
|
4807
|
+
* @category combining
|
|
4808
4808
|
* @since 4.0.0
|
|
4809
4809
|
*/
|
|
4810
4810
|
<X, E, R>(effect: Effect.Effect<X, E, R>): <OutElem, OutDone, OutErr, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr | E, OutDone, InElem, InErr, InDone, Env | R>;
|
|
@@ -4817,7 +4817,7 @@ export declare const mergeEffect: {
|
|
|
4817
4817
|
* The effect's successful value is ignored. If the effect fails while the
|
|
4818
4818
|
* channel is running, the returned channel fails with that error.
|
|
4819
4819
|
*
|
|
4820
|
-
* @category
|
|
4820
|
+
* @category combining
|
|
4821
4821
|
* @since 4.0.0
|
|
4822
4822
|
*/
|
|
4823
4823
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, X, E, R>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, effect: Effect.Effect<X, E, R>): Channel<OutElem, OutErr | E, OutDone, InElem, InErr, InDone, Env | R>;
|
|
@@ -4901,7 +4901,7 @@ export declare const encodeText: <Err, Done>() => Channel<Arr.NonEmptyReadonlyAr
|
|
|
4901
4901
|
* // Outputs: 2, 4, 6
|
|
4902
4902
|
* ```
|
|
4903
4903
|
*
|
|
4904
|
-
* @category
|
|
4904
|
+
* @category sequencing
|
|
4905
4905
|
* @since 2.0.0
|
|
4906
4906
|
*/
|
|
4907
4907
|
export declare const pipeTo: {
|
|
@@ -4930,7 +4930,7 @@ export declare const pipeTo: {
|
|
|
4930
4930
|
* // Outputs: 2, 4, 6
|
|
4931
4931
|
* ```
|
|
4932
4932
|
*
|
|
4933
|
-
* @category
|
|
4933
|
+
* @category sequencing
|
|
4934
4934
|
* @since 2.0.0
|
|
4935
4935
|
*/
|
|
4936
4936
|
<OutElem2, OutErr2, OutDone2, OutElem, OutErr, OutDone, Env2>(that: Channel<OutElem2, OutErr2, OutDone2, OutElem, OutErr, OutDone, Env2>): <InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem2, OutErr2, OutDone2, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -4959,7 +4959,7 @@ export declare const pipeTo: {
|
|
|
4959
4959
|
* // Outputs: 2, 4, 6
|
|
4960
4960
|
* ```
|
|
4961
4961
|
*
|
|
4962
|
-
* @category
|
|
4962
|
+
* @category sequencing
|
|
4963
4963
|
* @since 2.0.0
|
|
4964
4964
|
*/
|
|
4965
4965
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, OutElem2, OutErr2, OutDone2, Env2>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, that: Channel<OutElem2, OutErr2, OutDone2, OutElem, OutErr, OutDone, Env2>): Channel<OutElem2, OutErr2, OutDone2, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -4988,7 +4988,7 @@ export declare const pipeTo: {
|
|
|
4988
4988
|
* // Source errors are preserved and not sent to transform channel
|
|
4989
4989
|
* ```
|
|
4990
4990
|
*
|
|
4991
|
-
* @category
|
|
4991
|
+
* @category sequencing
|
|
4992
4992
|
* @since 2.0.0
|
|
4993
4993
|
*/
|
|
4994
4994
|
export declare const pipeToOrFail: {
|
|
@@ -5016,7 +5016,7 @@ export declare const pipeToOrFail: {
|
|
|
5016
5016
|
* // Source errors are preserved and not sent to transform channel
|
|
5017
5017
|
* ```
|
|
5018
5018
|
*
|
|
5019
|
-
* @category
|
|
5019
|
+
* @category sequencing
|
|
5020
5020
|
* @since 2.0.0
|
|
5021
5021
|
*/
|
|
5022
5022
|
<OutElem2, OutErr2, OutDone2, OutElem, OutDone, Env2>(that: Channel<OutElem2, OutErr2, OutDone2, OutElem, never, OutDone, Env2>): <OutErr, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem2, OutErr | OutErr2, OutDone2, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -5044,7 +5044,7 @@ export declare const pipeToOrFail: {
|
|
|
5044
5044
|
* // Source errors are preserved and not sent to transform channel
|
|
5045
5045
|
* ```
|
|
5046
5046
|
*
|
|
5047
|
-
* @category
|
|
5047
|
+
* @category sequencing
|
|
5048
5048
|
* @since 2.0.0
|
|
5049
5049
|
*/
|
|
5050
5050
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, OutElem2, OutErr2, OutDone2, Env2>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, that: Channel<OutElem2, OutErr2, OutDone2, OutElem, never, OutDone, Env2>): Channel<OutElem2, OutErr | OutErr2, OutDone2, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -5081,7 +5081,7 @@ export declare const unwrap: <OutElem, OutErr, OutDone, InElem, InErr, InDone, R
|
|
|
5081
5081
|
* Runs a channel with a scope provided for the duration of the channel
|
|
5082
5082
|
* execution, removing the channel's `Scope` requirement.
|
|
5083
5083
|
*
|
|
5084
|
-
* @category
|
|
5084
|
+
* @category resource management
|
|
5085
5085
|
* @since 2.0.0
|
|
5086
5086
|
*/
|
|
5087
5087
|
export declare const scoped: <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Exclude<Env, Scope.Scope>>;
|
|
@@ -5116,7 +5116,7 @@ export declare const scoped: <OutElem, OutErr, OutDone, InElem, InErr, InDone, E
|
|
|
5116
5116
|
* )
|
|
5117
5117
|
* ```
|
|
5118
5118
|
*
|
|
5119
|
-
* @category
|
|
5119
|
+
* @category sequencing
|
|
5120
5120
|
* @since 2.0.0
|
|
5121
5121
|
*/
|
|
5122
5122
|
export declare const embedInput: {
|
|
@@ -5151,7 +5151,7 @@ export declare const embedInput: {
|
|
|
5151
5151
|
* )
|
|
5152
5152
|
* ```
|
|
5153
5153
|
*
|
|
5154
|
-
* @category
|
|
5154
|
+
* @category sequencing
|
|
5155
5155
|
* @since 2.0.0
|
|
5156
5156
|
*/
|
|
5157
5157
|
<InElem, InErr, InDone, R>(input: (upstream: Pull.Pull<InElem, InErr, InDone>) => Effect.Effect<void, never, R>): <OutElem, OutErr, OutDone, Env>(self: Channel<OutElem, OutErr, OutDone, unknown, unknown, unknown, Env>) => Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env | R>;
|
|
@@ -5186,7 +5186,7 @@ export declare const embedInput: {
|
|
|
5186
5186
|
* )
|
|
5187
5187
|
* ```
|
|
5188
5188
|
*
|
|
5189
|
-
* @category
|
|
5189
|
+
* @category sequencing
|
|
5190
5190
|
* @since 2.0.0
|
|
5191
5191
|
*/
|
|
5192
5192
|
<OutElem, OutErr, OutDone, Env, InErr, InElem, InDone, R>(self: Channel<OutElem, OutErr, OutDone, unknown, unknown, unknown, Env>, input: (upstream: Pull.Pull<InElem, InErr, InDone>) => Effect.Effect<void, never, R>): Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env | R>;
|
|
@@ -5359,7 +5359,7 @@ export declare const bufferArray: {
|
|
|
5359
5359
|
* channel's done value. If the channel completes first, the original channel's
|
|
5360
5360
|
* done value is preserved.
|
|
5361
5361
|
*
|
|
5362
|
-
* @category
|
|
5362
|
+
* @category interruption
|
|
5363
5363
|
* @since 2.0.0
|
|
5364
5364
|
*/
|
|
5365
5365
|
export declare const interruptWhen: {
|
|
@@ -5377,7 +5377,7 @@ export declare const interruptWhen: {
|
|
|
5377
5377
|
* channel's done value. If the channel completes first, the original channel's
|
|
5378
5378
|
* done value is preserved.
|
|
5379
5379
|
*
|
|
5380
|
-
* @category
|
|
5380
|
+
* @category interruption
|
|
5381
5381
|
* @since 2.0.0
|
|
5382
5382
|
*/
|
|
5383
5383
|
<OutDone2, OutErr2, Env2>(effect: Effect.Effect<OutDone2, OutErr2, Env2>): <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr | OutErr2, OutDone | OutDone2, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -5395,7 +5395,7 @@ export declare const interruptWhen: {
|
|
|
5395
5395
|
* channel's done value. If the channel completes first, the original channel's
|
|
5396
5396
|
* done value is preserved.
|
|
5397
5397
|
*
|
|
5398
|
-
* @category
|
|
5398
|
+
* @category interruption
|
|
5399
5399
|
* @since 2.0.0
|
|
5400
5400
|
*/
|
|
5401
5401
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, OutDone2, OutErr2, Env2>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, effect: Effect.Effect<OutDone2, OutErr2, Env2>): Channel<OutElem, OutErr | OutErr2, OutDone | OutDone2, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -5410,7 +5410,7 @@ export declare const interruptWhen: {
|
|
|
5410
5410
|
* fails with that error. If the channel completes first, the channel's done
|
|
5411
5411
|
* value is preserved.
|
|
5412
5412
|
*
|
|
5413
|
-
* @category
|
|
5413
|
+
* @category interruption
|
|
5414
5414
|
* @since 4.0.0
|
|
5415
5415
|
*/
|
|
5416
5416
|
export declare const haltWhen: {
|
|
@@ -5424,7 +5424,7 @@ export declare const haltWhen: {
|
|
|
5424
5424
|
* fails with that error. If the channel completes first, the channel's done
|
|
5425
5425
|
* value is preserved.
|
|
5426
5426
|
*
|
|
5427
|
-
* @category
|
|
5427
|
+
* @category interruption
|
|
5428
5428
|
* @since 4.0.0
|
|
5429
5429
|
*/
|
|
5430
5430
|
<OutDone2, OutErr2, Env2>(effect: Effect.Effect<OutDone2, OutErr2, Env2>): <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr | OutErr2, OutDone | OutDone2, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -5438,7 +5438,7 @@ export declare const haltWhen: {
|
|
|
5438
5438
|
* fails with that error. If the channel completes first, the channel's done
|
|
5439
5439
|
* value is preserved.
|
|
5440
5440
|
*
|
|
5441
|
-
* @category
|
|
5441
|
+
* @category interruption
|
|
5442
5442
|
* @since 4.0.0
|
|
5443
5443
|
*/
|
|
5444
5444
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, OutDone2, OutErr2, Env2>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, effect: Effect.Effect<OutDone2, OutErr2, Env2>): Channel<OutElem, OutErr | OutErr2, OutDone | OutDone2, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -5451,7 +5451,7 @@ export declare const haltWhen: {
|
|
|
5451
5451
|
* The finalizer receives the failure `Cause`. The original channel failure is
|
|
5452
5452
|
* preserved. The finalizer itself must not fail.
|
|
5453
5453
|
*
|
|
5454
|
-
* @category
|
|
5454
|
+
* @category error handling
|
|
5455
5455
|
* @since 4.0.0
|
|
5456
5456
|
*/
|
|
5457
5457
|
export declare const onError: {
|
|
@@ -5463,7 +5463,7 @@ export declare const onError: {
|
|
|
5463
5463
|
* The finalizer receives the failure `Cause`. The original channel failure is
|
|
5464
5464
|
* preserved. The finalizer itself must not fail.
|
|
5465
5465
|
*
|
|
5466
|
-
* @category
|
|
5466
|
+
* @category error handling
|
|
5467
5467
|
* @since 4.0.0
|
|
5468
5468
|
*/
|
|
5469
5469
|
<OutDone, OutErr, Env2>(finalizer: (cause: Cause.Cause<OutErr>) => Effect.Effect<unknown, never, Env2>): <OutElem, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -5475,7 +5475,7 @@ export declare const onError: {
|
|
|
5475
5475
|
* The finalizer receives the failure `Cause`. The original channel failure is
|
|
5476
5476
|
* preserved. The finalizer itself must not fail.
|
|
5477
5477
|
*
|
|
5478
|
-
* @category
|
|
5478
|
+
* @category error handling
|
|
5479
5479
|
* @since 4.0.0
|
|
5480
5480
|
*/
|
|
5481
5481
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, Env2>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, finalizer: (cause: Cause.Cause<OutErr>) => Effect.Effect<unknown, never, Env2>): Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -5506,7 +5506,7 @@ export declare const onError: {
|
|
|
5506
5506
|
* })
|
|
5507
5507
|
* ```
|
|
5508
5508
|
*
|
|
5509
|
-
* @category
|
|
5509
|
+
* @category resource management
|
|
5510
5510
|
* @since 4.0.0
|
|
5511
5511
|
*/
|
|
5512
5512
|
export declare const onExit: {
|
|
@@ -5536,7 +5536,7 @@ export declare const onExit: {
|
|
|
5536
5536
|
* })
|
|
5537
5537
|
* ```
|
|
5538
5538
|
*
|
|
5539
|
-
* @category
|
|
5539
|
+
* @category resource management
|
|
5540
5540
|
* @since 4.0.0
|
|
5541
5541
|
*/
|
|
5542
5542
|
<OutDone, OutErr, Env2>(finalizer: (e: Exit.Exit<OutDone, OutErr>) => Effect.Effect<unknown, never, Env2>): <OutElem, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -5566,7 +5566,7 @@ export declare const onExit: {
|
|
|
5566
5566
|
* })
|
|
5567
5567
|
* ```
|
|
5568
5568
|
*
|
|
5569
|
-
* @category
|
|
5569
|
+
* @category resource management
|
|
5570
5570
|
* @since 4.0.0
|
|
5571
5571
|
*/
|
|
5572
5572
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, Env2>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, finalizer: (e: Exit.Exit<OutDone, OutErr>) => Effect.Effect<unknown, never, Env2>): Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -5579,7 +5579,7 @@ export declare const onExit: {
|
|
|
5579
5579
|
* The effect's successful value is ignored. If the effect fails, the returned
|
|
5580
5580
|
* channel fails before running the source channel.
|
|
5581
5581
|
*
|
|
5582
|
-
* @category
|
|
5582
|
+
* @category hooks
|
|
5583
5583
|
* @since 4.0.0
|
|
5584
5584
|
*/
|
|
5585
5585
|
export declare const onStart: {
|
|
@@ -5591,7 +5591,7 @@ export declare const onStart: {
|
|
|
5591
5591
|
* The effect's successful value is ignored. If the effect fails, the returned
|
|
5592
5592
|
* channel fails before running the source channel.
|
|
5593
5593
|
*
|
|
5594
|
-
* @category
|
|
5594
|
+
* @category hooks
|
|
5595
5595
|
* @since 4.0.0
|
|
5596
5596
|
*/
|
|
5597
5597
|
<A, E, R>(onStart: Effect.Effect<A, E, R>): <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr | E, OutDone, InElem, InErr, InDone, Env | R>;
|
|
@@ -5603,7 +5603,7 @@ export declare const onStart: {
|
|
|
5603
5603
|
* The effect's successful value is ignored. If the effect fails, the returned
|
|
5604
5604
|
* channel fails before running the source channel.
|
|
5605
5605
|
*
|
|
5606
|
-
* @category
|
|
5606
|
+
* @category hooks
|
|
5607
5607
|
* @since 4.0.0
|
|
5608
5608
|
*/
|
|
5609
5609
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, A, E, R>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, onStart: Effect.Effect<A, E, R>): Channel<OutElem, OutErr | E, OutDone, InElem, InErr, InDone, Env | R>;
|
|
@@ -5617,7 +5617,7 @@ export declare const onStart: {
|
|
|
5617
5617
|
* emitted unchanged. The effect is not run if the channel completes without
|
|
5618
5618
|
* emitting an element.
|
|
5619
5619
|
*
|
|
5620
|
-
* @category
|
|
5620
|
+
* @category hooks
|
|
5621
5621
|
* @since 4.0.0
|
|
5622
5622
|
*/
|
|
5623
5623
|
export declare const onFirst: {
|
|
@@ -5630,7 +5630,7 @@ export declare const onFirst: {
|
|
|
5630
5630
|
* emitted unchanged. The effect is not run if the channel completes without
|
|
5631
5631
|
* emitting an element.
|
|
5632
5632
|
*
|
|
5633
|
-
* @category
|
|
5633
|
+
* @category hooks
|
|
5634
5634
|
* @since 4.0.0
|
|
5635
5635
|
*/
|
|
5636
5636
|
<OutElem, A, E, R>(onFirst: (element: Types.NoInfer<OutElem>) => Effect.Effect<A, E, R>): <OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr | E, OutDone, InElem, InErr, InDone, Env | R>;
|
|
@@ -5643,7 +5643,7 @@ export declare const onFirst: {
|
|
|
5643
5643
|
* emitted unchanged. The effect is not run if the channel completes without
|
|
5644
5644
|
* emitting an element.
|
|
5645
5645
|
*
|
|
5646
|
-
* @category
|
|
5646
|
+
* @category hooks
|
|
5647
5647
|
* @since 4.0.0
|
|
5648
5648
|
*/
|
|
5649
5649
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, A, E, R>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, onFirst: (element: Types.NoInfer<OutElem>) => Effect.Effect<A, E, R>): Channel<OutElem, OutErr | E, OutDone, InElem, InErr, InDone, Env | R>;
|
|
@@ -5657,7 +5657,7 @@ export declare const onFirst: {
|
|
|
5657
5657
|
* not run when the channel fails. If the effect fails, the returned channel
|
|
5658
5658
|
* fails with that error.
|
|
5659
5659
|
*
|
|
5660
|
-
* @category
|
|
5660
|
+
* @category hooks
|
|
5661
5661
|
* @since 4.0.0
|
|
5662
5662
|
*/
|
|
5663
5663
|
export declare const onEnd: {
|
|
@@ -5670,7 +5670,7 @@ export declare const onEnd: {
|
|
|
5670
5670
|
* not run when the channel fails. If the effect fails, the returned channel
|
|
5671
5671
|
* fails with that error.
|
|
5672
5672
|
*
|
|
5673
|
-
* @category
|
|
5673
|
+
* @category hooks
|
|
5674
5674
|
* @since 4.0.0
|
|
5675
5675
|
*/
|
|
5676
5676
|
<A, E, R>(onEnd: Effect.Effect<A, E, R>): <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr | E, OutDone, InElem, InErr, InDone, Env | R>;
|
|
@@ -5683,7 +5683,7 @@ export declare const onEnd: {
|
|
|
5683
5683
|
* not run when the channel fails. If the effect fails, the returned channel
|
|
5684
5684
|
* fails with that error.
|
|
5685
5685
|
*
|
|
5686
|
-
* @category
|
|
5686
|
+
* @category hooks
|
|
5687
5687
|
* @since 4.0.0
|
|
5688
5688
|
*/
|
|
5689
5689
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, A, E, R>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, onEnd: Effect.Effect<A, E, R>): Channel<OutElem, OutErr | E, OutDone, InElem, InErr, InDone, Env | R>;
|
|
@@ -5711,7 +5711,7 @@ export declare const onEnd: {
|
|
|
5711
5711
|
* )
|
|
5712
5712
|
* ```
|
|
5713
5713
|
*
|
|
5714
|
-
* @category
|
|
5714
|
+
* @category resource management
|
|
5715
5715
|
* @since 2.0.0
|
|
5716
5716
|
*/
|
|
5717
5717
|
export declare const ensuring: {
|
|
@@ -5738,7 +5738,7 @@ export declare const ensuring: {
|
|
|
5738
5738
|
* )
|
|
5739
5739
|
* ```
|
|
5740
5740
|
*
|
|
5741
|
-
* @category
|
|
5741
|
+
* @category resource management
|
|
5742
5742
|
* @since 2.0.0
|
|
5743
5743
|
*/
|
|
5744
5744
|
<Env2>(finalizer: Effect.Effect<unknown, never, Env2>): <OutElem, OutDone, OutErr, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -5765,7 +5765,7 @@ export declare const ensuring: {
|
|
|
5765
5765
|
* )
|
|
5766
5766
|
* ```
|
|
5767
5767
|
*
|
|
5768
|
-
* @category
|
|
5768
|
+
* @category resource management
|
|
5769
5769
|
* @since 2.0.0
|
|
5770
5770
|
*/
|
|
5771
5771
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, Env2>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, finalizer: Effect.Effect<unknown, never, Env2>): Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env2 | Env>;
|
|
@@ -6043,7 +6043,7 @@ export declare const withSpan: {
|
|
|
6043
6043
|
/**
|
|
6044
6044
|
* The starting channel for Do notation, emitting an empty object.
|
|
6045
6045
|
*
|
|
6046
|
-
* @category
|
|
6046
|
+
* @category do notation
|
|
6047
6047
|
* @since 4.0.0
|
|
6048
6048
|
*/
|
|
6049
6049
|
export declare const Do: Channel<{}>;
|
|
@@ -6059,7 +6059,7 @@ export {
|
|
|
6059
6059
|
/**
|
|
6060
6060
|
* Adds a computed field to each object emitted by a channel.
|
|
6061
6061
|
*
|
|
6062
|
-
* @category
|
|
6062
|
+
* @category do notation
|
|
6063
6063
|
* @since 4.0.0
|
|
6064
6064
|
*/
|
|
6065
6065
|
let_ as let };
|
|
@@ -6073,7 +6073,7 @@ let_ as let };
|
|
|
6073
6073
|
* channel's output becomes the value of the new field. `options.concurrency`
|
|
6074
6074
|
* and `options.bufferSize` control how derived channels are flattened.
|
|
6075
6075
|
*
|
|
6076
|
-
* @category
|
|
6076
|
+
* @category do notation
|
|
6077
6077
|
* @since 4.0.0
|
|
6078
6078
|
*/
|
|
6079
6079
|
export declare const bind: {
|
|
@@ -6087,7 +6087,7 @@ export declare const bind: {
|
|
|
6087
6087
|
* channel's output becomes the value of the new field. `options.concurrency`
|
|
6088
6088
|
* and `options.bufferSize` control how derived channels are flattened.
|
|
6089
6089
|
*
|
|
6090
|
-
* @category
|
|
6090
|
+
* @category do notation
|
|
6091
6091
|
* @since 4.0.0
|
|
6092
6092
|
*/
|
|
6093
6093
|
<N extends string, OutElem extends object, B, OutErr2, OutDone2, InElem2, InErr2, InDone2, Env2>(name: Exclude<N, keyof OutElem>, f: (a: NoInfer<OutElem>) => Channel<B, OutErr2, OutDone2, InElem2, InErr2, InDone2, Env2>, options?: {
|
|
@@ -6106,7 +6106,7 @@ export declare const bind: {
|
|
|
6106
6106
|
* channel's output becomes the value of the new field. `options.concurrency`
|
|
6107
6107
|
* and `options.bufferSize` control how derived channels are flattened.
|
|
6108
6108
|
*
|
|
6109
|
-
* @category
|
|
6109
|
+
* @category do notation
|
|
6110
6110
|
* @since 4.0.0
|
|
6111
6111
|
*/
|
|
6112
6112
|
<OutElem extends object, OutErr, OutDone, InElem, InErr, InDone, Env, N extends string, B, OutErr2, OutDone2, InElem2, InErr2, InDone2, Env2>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, name: Exclude<N, keyof OutElem>, f: (a: NoInfer<OutElem>) => Channel<B, OutErr2, OutDone2, InElem2, InErr2, InDone2, Env2>, options?: {
|
|
@@ -6128,7 +6128,7 @@ export declare const bind: {
|
|
|
6128
6128
|
* @see {@link bind} for adding a field produced by another channel
|
|
6129
6129
|
* @see {@link let_ let} for adding a computed field
|
|
6130
6130
|
*
|
|
6131
|
-
* @category
|
|
6131
|
+
* @category do notation
|
|
6132
6132
|
* @since 4.0.0
|
|
6133
6133
|
*/
|
|
6134
6134
|
export declare const bindTo: {
|
|
@@ -6144,7 +6144,7 @@ export declare const bindTo: {
|
|
|
6144
6144
|
* @see {@link bind} for adding a field produced by another channel
|
|
6145
6145
|
* @see {@link let_ let} for adding a computed field
|
|
6146
6146
|
*
|
|
6147
|
-
* @category
|
|
6147
|
+
* @category do notation
|
|
6148
6148
|
* @since 4.0.0
|
|
6149
6149
|
*/
|
|
6150
6150
|
<N extends string>(name: N): <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<{
|
|
@@ -6162,7 +6162,7 @@ export declare const bindTo: {
|
|
|
6162
6162
|
* @see {@link bind} for adding a field produced by another channel
|
|
6163
6163
|
* @see {@link let_ let} for adding a computed field
|
|
6164
6164
|
*
|
|
6165
|
-
* @category
|
|
6165
|
+
* @category do notation
|
|
6166
6166
|
* @since 4.0.0
|
|
6167
6167
|
*/
|
|
6168
6168
|
<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, N extends string>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, name: N): Channel<{
|