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/Effect.d.ts
CHANGED
|
@@ -1218,7 +1218,7 @@ export declare const whileLoop: <A, E, R>(options: {
|
|
|
1218
1218
|
* ```
|
|
1219
1219
|
*
|
|
1220
1220
|
* @see {@link tryPromise} for a version that can handle failures.
|
|
1221
|
-
* @category
|
|
1221
|
+
* @category constructors
|
|
1222
1222
|
* @since 2.0.0
|
|
1223
1223
|
*/
|
|
1224
1224
|
export declare const promise: <A>(evaluate: (signal: AbortSignal) => PromiseLike<A>) => Effect<A>;
|
|
@@ -1284,7 +1284,7 @@ export declare const promise: <A>(evaluate: (signal: AbortSignal) => PromiseLike
|
|
|
1284
1284
|
* ```
|
|
1285
1285
|
*
|
|
1286
1286
|
* @see {@link promise} if the effectful computation is asynchronous and does not throw errors.
|
|
1287
|
-
* @category
|
|
1287
|
+
* @category constructors
|
|
1288
1288
|
* @since 2.0.0
|
|
1289
1289
|
*/
|
|
1290
1290
|
export declare const tryPromise: <A, E = Cause.UnknownError>(options: {
|
|
@@ -1312,7 +1312,7 @@ export declare const tryPromise: <A, E = Cause.UnknownError>(options: {
|
|
|
1312
1312
|
* ```
|
|
1313
1313
|
*
|
|
1314
1314
|
* @see {@link fail} to create an effect that represents a failure.
|
|
1315
|
-
* @category
|
|
1315
|
+
* @category constructors
|
|
1316
1316
|
* @since 2.0.0
|
|
1317
1317
|
*/
|
|
1318
1318
|
export declare const succeed: <A>(value: A) => Effect<A>;
|
|
@@ -1330,7 +1330,7 @@ export declare const succeed: <A>(value: A) => Effect<A>;
|
|
|
1330
1330
|
* // Output: { _id: 'Option', _tag: 'None' }
|
|
1331
1331
|
* ```
|
|
1332
1332
|
*
|
|
1333
|
-
* @category
|
|
1333
|
+
* @category constructors
|
|
1334
1334
|
* @since 2.0.0
|
|
1335
1335
|
*/
|
|
1336
1336
|
export declare const succeedNone: Effect<Option<never>>;
|
|
@@ -1348,7 +1348,7 @@ export declare const succeedNone: Effect<Option<never>>;
|
|
|
1348
1348
|
* // Output: { _id: 'Option', _tag: 'Some', value: 42 }
|
|
1349
1349
|
* ```
|
|
1350
1350
|
*
|
|
1351
|
-
* @category
|
|
1351
|
+
* @category constructors
|
|
1352
1352
|
* @since 2.0.0
|
|
1353
1353
|
*/
|
|
1354
1354
|
export declare const succeedSome: <A>(value: A) => Effect<Option<A>>;
|
|
@@ -1435,7 +1435,7 @@ export declare const succeedSome: <A>(value: A) => Effect<Option<A>>;
|
|
|
1435
1435
|
* )
|
|
1436
1436
|
* ```
|
|
1437
1437
|
*
|
|
1438
|
-
* @category
|
|
1438
|
+
* @category constructors
|
|
1439
1439
|
* @since 2.0.0
|
|
1440
1440
|
*/
|
|
1441
1441
|
export declare const suspend: <A, E, R>(effect: LazyArg<Effect<A, E, R>>) => Effect<A, E, R>;
|
|
@@ -1471,7 +1471,7 @@ export declare const suspend: <A, E, R>(effect: LazyArg<Effect<A, E, R>>) => Eff
|
|
|
1471
1471
|
* ```
|
|
1472
1472
|
*
|
|
1473
1473
|
* @see {@link try_ | try} for a version that can handle failures.
|
|
1474
|
-
* @category
|
|
1474
|
+
* @category constructors
|
|
1475
1475
|
* @since 2.0.0
|
|
1476
1476
|
*/
|
|
1477
1477
|
export declare const sync: <A>(thunk: LazyArg<A>) => Effect<A>;
|
|
@@ -1480,7 +1480,7 @@ export {
|
|
|
1480
1480
|
/**
|
|
1481
1481
|
* Returns an effect that succeeds with `void`.
|
|
1482
1482
|
*
|
|
1483
|
-
* @category
|
|
1483
|
+
* @category constructors
|
|
1484
1484
|
* @since 2.0.0
|
|
1485
1485
|
*/
|
|
1486
1486
|
void_ as void };
|
|
@@ -1489,7 +1489,7 @@ export {
|
|
|
1489
1489
|
/**
|
|
1490
1490
|
* Returns an effect that succeeds with `undefined`.
|
|
1491
1491
|
*
|
|
1492
|
-
* @category
|
|
1492
|
+
* @category constructors
|
|
1493
1493
|
* @since 4.0.0
|
|
1494
1494
|
*/
|
|
1495
1495
|
undefined_ as undefined };
|
|
@@ -1525,7 +1525,7 @@ undefined_ as undefined };
|
|
|
1525
1525
|
* const program = delay(1000)
|
|
1526
1526
|
* ```
|
|
1527
1527
|
*
|
|
1528
|
-
* @category
|
|
1528
|
+
* @category constructors
|
|
1529
1529
|
* @since 4.0.0
|
|
1530
1530
|
*/
|
|
1531
1531
|
export declare const callback: <A, E = never, R = never>(register: (this: Scheduler, resume: (effect: Effect<A, E, R>) => void, signal: AbortSignal) => void | Effect<void, never, R>) => Effect<A, E, R>;
|
|
@@ -1548,7 +1548,7 @@ export declare const callback: <A, E = never, R = never>(register: (this: Schedu
|
|
|
1548
1548
|
* const timedProgram = Effect.timeout(program, "1 second")
|
|
1549
1549
|
* ```
|
|
1550
1550
|
*
|
|
1551
|
-
* @category
|
|
1551
|
+
* @category constructors
|
|
1552
1552
|
* @since 2.0.0
|
|
1553
1553
|
*/
|
|
1554
1554
|
export declare const never: Effect<never>;
|
|
@@ -1787,7 +1787,7 @@ export declare const bind: {
|
|
|
1787
1787
|
* })
|
|
1788
1788
|
* ```
|
|
1789
1789
|
*
|
|
1790
|
-
* @category
|
|
1790
|
+
* @category constructors
|
|
1791
1791
|
* @since 2.0.0
|
|
1792
1792
|
*/
|
|
1793
1793
|
export declare const gen: {
|
|
@@ -1839,7 +1839,7 @@ export declare const gen: {
|
|
|
1839
1839
|
* })
|
|
1840
1840
|
* ```
|
|
1841
1841
|
*
|
|
1842
|
-
* @category
|
|
1842
|
+
* @category constructors
|
|
1843
1843
|
* @since 2.0.0
|
|
1844
1844
|
*/
|
|
1845
1845
|
<Eff extends Effect<any, any, any>, AEff>(f: () => Generator<Eff, AEff, never>): Effect<AEff, [
|
|
@@ -1895,7 +1895,7 @@ export declare const gen: {
|
|
|
1895
1895
|
* })
|
|
1896
1896
|
* ```
|
|
1897
1897
|
*
|
|
1898
|
-
* @category
|
|
1898
|
+
* @category constructors
|
|
1899
1899
|
* @since 2.0.0
|
|
1900
1900
|
*/
|
|
1901
1901
|
<Self, Eff extends Effect<any, any, any>, AEff>(options: {
|
|
@@ -1915,7 +1915,7 @@ export declare namespace gen {
|
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Generator return type accepted by `Effect.gen`.
|
|
1917
1917
|
*
|
|
1918
|
-
* @category
|
|
1918
|
+
* @category constructors
|
|
1919
1919
|
* @since 4.0.0
|
|
1920
1920
|
*/
|
|
1921
1921
|
type Return<A, E = never, R = never> = Generator<Effect<any, E, R>, A, any>;
|
|
@@ -1944,7 +1944,7 @@ export declare namespace gen {
|
|
|
1944
1944
|
* ```
|
|
1945
1945
|
*
|
|
1946
1946
|
* @see {@link succeed} to create an effect that represents a successful value.
|
|
1947
|
-
* @category
|
|
1947
|
+
* @category constructors
|
|
1948
1948
|
* @since 2.0.0
|
|
1949
1949
|
*/
|
|
1950
1950
|
export declare const fail: <E>(error: E) => Effect<never, E>;
|
|
@@ -1972,7 +1972,7 @@ export declare const fail: <E>(error: E) => Effect<never, E>;
|
|
|
1972
1972
|
* // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
|
|
1973
1973
|
* ```
|
|
1974
1974
|
*
|
|
1975
|
-
* @category
|
|
1975
|
+
* @category constructors
|
|
1976
1976
|
* @since 2.0.0
|
|
1977
1977
|
*/
|
|
1978
1978
|
export declare const failSync: <E>(evaluate: LazyArg<E>) => Effect<never, E>;
|
|
@@ -1997,7 +1997,7 @@ export declare const failSync: <E>(evaluate: LazyArg<E>) => Effect<never, E>;
|
|
|
1997
1997
|
* // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
|
|
1998
1998
|
* ```
|
|
1999
1999
|
*
|
|
2000
|
-
* @category
|
|
2000
|
+
* @category constructors
|
|
2001
2001
|
* @since 2.0.0
|
|
2002
2002
|
*/
|
|
2003
2003
|
export declare const failCause: <E>(cause: Cause.Cause<E>) => Effect<never, E>;
|
|
@@ -2025,7 +2025,7 @@ export declare const failCause: <E>(cause: Cause.Cause<E>) => Effect<never, E>;
|
|
|
2025
2025
|
* // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
|
|
2026
2026
|
* ```
|
|
2027
2027
|
*
|
|
2028
|
-
* @category
|
|
2028
|
+
* @category constructors
|
|
2029
2029
|
* @since 2.0.0
|
|
2030
2030
|
*/
|
|
2031
2031
|
export declare const failCauseSync: <E>(evaluate: LazyArg<Cause.Cause<E>>) => Effect<never, E>;
|
|
@@ -2066,7 +2066,7 @@ export declare const failCauseSync: <E>(evaluate: LazyArg<Cause.Cause<E>>) => Ef
|
|
|
2066
2066
|
* // ...stack trace...
|
|
2067
2067
|
* ```
|
|
2068
2068
|
*
|
|
2069
|
-
* @category
|
|
2069
|
+
* @category constructors
|
|
2070
2070
|
* @since 2.0.0
|
|
2071
2071
|
*/
|
|
2072
2072
|
export declare const die: (defect: unknown) => Effect<never>;
|
|
@@ -2136,7 +2136,7 @@ export {
|
|
|
2136
2136
|
*
|
|
2137
2137
|
* @see {@link sync} if the effectful computation is synchronous and does not
|
|
2138
2138
|
* throw errors.
|
|
2139
|
-
* @category
|
|
2139
|
+
* @category constructors
|
|
2140
2140
|
* @since 2.0.0
|
|
2141
2141
|
*/
|
|
2142
2142
|
try_ as try };
|
|
@@ -2157,7 +2157,7 @@ try_ as try };
|
|
|
2157
2157
|
* Effect.runPromise(program)
|
|
2158
2158
|
* ```
|
|
2159
2159
|
*
|
|
2160
|
-
* @category
|
|
2160
|
+
* @category constructors
|
|
2161
2161
|
* @since 2.0.0
|
|
2162
2162
|
*/
|
|
2163
2163
|
export declare const yieldNow: Effect<void>;
|
|
@@ -2178,7 +2178,7 @@ export declare const yieldNow: Effect<void>;
|
|
|
2178
2178
|
* Effect.runPromise(program)
|
|
2179
2179
|
* ```
|
|
2180
2180
|
*
|
|
2181
|
-
* @category
|
|
2181
|
+
* @category constructors
|
|
2182
2182
|
* @since 4.0.0
|
|
2183
2183
|
*/
|
|
2184
2184
|
export declare const yieldNowWith: (priority?: number) => Effect<void>;
|
|
@@ -2198,7 +2198,7 @@ export declare const yieldNowWith: (priority?: number) => Effect<void>;
|
|
|
2198
2198
|
* // Output: Fiber ID: 1
|
|
2199
2199
|
* ```
|
|
2200
2200
|
*
|
|
2201
|
-
* @category
|
|
2201
|
+
* @category constructors
|
|
2202
2202
|
* @since 4.0.0
|
|
2203
2203
|
*/
|
|
2204
2204
|
export declare const withFiber: <A, E = never, R = never>(evaluate: (fiber: Fiber<unknown, unknown>) => Effect<A, E, R>) => Effect<A, E, R>;
|
|
@@ -6405,7 +6405,7 @@ export declare const tapDefect: {
|
|
|
6405
6405
|
* // Ready
|
|
6406
6406
|
* ```
|
|
6407
6407
|
*
|
|
6408
|
-
* @category repetition
|
|
6408
|
+
* @category repetition
|
|
6409
6409
|
* @since 2.0.0
|
|
6410
6410
|
*/
|
|
6411
6411
|
export declare const eventually: <A, E, R>(self: Effect<A, E, R>) => Effect<A, never, R>;
|
|
@@ -13324,7 +13324,7 @@ export declare namespace Repeat {
|
|
|
13324
13324
|
/**
|
|
13325
13325
|
* Computes the result type of `Effect.repeat` from the original effect and repeat options.
|
|
13326
13326
|
*
|
|
13327
|
-
* @category repetition
|
|
13327
|
+
* @category repetition
|
|
13328
13328
|
* @since 2.0.0
|
|
13329
13329
|
*/
|
|
13330
13330
|
type Return<R, E, A, O extends Options<A>> = Effect<O extends {
|
|
@@ -13347,7 +13347,7 @@ export declare namespace Repeat {
|
|
|
13347
13347
|
/**
|
|
13348
13348
|
* Options that control whether and how an effect is repeated.
|
|
13349
13349
|
*
|
|
13350
|
-
* @category repetition
|
|
13350
|
+
* @category repetition
|
|
13351
13351
|
* @since 2.0.0
|
|
13352
13352
|
*/
|
|
13353
13353
|
interface Options<A> {
|
|
@@ -13384,7 +13384,7 @@ export declare namespace Repeat {
|
|
|
13384
13384
|
* })
|
|
13385
13385
|
* ```
|
|
13386
13386
|
*
|
|
13387
|
-
* @category repetition
|
|
13387
|
+
* @category repetition
|
|
13388
13388
|
* @since 2.0.0
|
|
13389
13389
|
*/
|
|
13390
13390
|
export declare const forever: <Arg extends Effect<any, any, any> | {
|
|
@@ -13467,7 +13467,7 @@ export declare const forever: <Arg extends Effect<any, any, any> | {
|
|
|
13467
13467
|
* @see {@link retry} for failure-based repetition
|
|
13468
13468
|
* @see {@link repeatOrElse} for fallback handling when repetition fails
|
|
13469
13469
|
*
|
|
13470
|
-
* @category repetition
|
|
13470
|
+
* @category repetition
|
|
13471
13471
|
* @since 2.0.0
|
|
13472
13472
|
*/
|
|
13473
13473
|
export declare const repeat: {
|
|
@@ -13544,7 +13544,7 @@ export declare const repeat: {
|
|
|
13544
13544
|
* @see {@link retry} for failure-based repetition
|
|
13545
13545
|
* @see {@link repeatOrElse} for fallback handling when repetition fails
|
|
13546
13546
|
*
|
|
13547
|
-
* @category repetition
|
|
13547
|
+
* @category repetition
|
|
13548
13548
|
* @since 2.0.0
|
|
13549
13549
|
*/
|
|
13550
13550
|
<O extends Repeat.Options<A>, A>(options: O): <E, R>(self: Effect<A, E, R>) => Repeat.Return<R, E, A, O>;
|
|
@@ -13621,7 +13621,7 @@ export declare const repeat: {
|
|
|
13621
13621
|
* @see {@link retry} for failure-based repetition
|
|
13622
13622
|
* @see {@link repeatOrElse} for fallback handling when repetition fails
|
|
13623
13623
|
*
|
|
13624
|
-
* @category repetition
|
|
13624
|
+
* @category repetition
|
|
13625
13625
|
* @since 2.0.0
|
|
13626
13626
|
*/
|
|
13627
13627
|
<Output, Input, Error, Env>(schedule: Schedule<Output, NoInfer<Input>, Error, Env>): <E, R>(self: Effect<Input, E, R>) => Effect<Output, E | Error, R | Env>;
|
|
@@ -13698,7 +13698,7 @@ export declare const repeat: {
|
|
|
13698
13698
|
* @see {@link retry} for failure-based repetition
|
|
13699
13699
|
* @see {@link repeatOrElse} for fallback handling when repetition fails
|
|
13700
13700
|
*
|
|
13701
|
-
* @category repetition
|
|
13701
|
+
* @category repetition
|
|
13702
13702
|
* @since 2.0.0
|
|
13703
13703
|
*/
|
|
13704
13704
|
<Output, Input, Error, Env>(builder: ($: <O, E, R>(_: Schedule<O, NoInfer<Input>, E, R>) => Schedule<O, Input, E, R>) => Schedule<Output, NoInfer<Input>, Error, Env>): <E, R>(self: Effect<Input, E, R>) => Effect<Output, E | Error, R | Env>;
|
|
@@ -13775,7 +13775,7 @@ export declare const repeat: {
|
|
|
13775
13775
|
* @see {@link retry} for failure-based repetition
|
|
13776
13776
|
* @see {@link repeatOrElse} for fallback handling when repetition fails
|
|
13777
13777
|
*
|
|
13778
|
-
* @category repetition
|
|
13778
|
+
* @category repetition
|
|
13779
13779
|
* @since 2.0.0
|
|
13780
13780
|
*/
|
|
13781
13781
|
<A, E, R, O extends Repeat.Options<A>>(self: Effect<A, E, R>, options: O): Repeat.Return<R, E, A, O>;
|
|
@@ -13852,7 +13852,7 @@ export declare const repeat: {
|
|
|
13852
13852
|
* @see {@link retry} for failure-based repetition
|
|
13853
13853
|
* @see {@link repeatOrElse} for fallback handling when repetition fails
|
|
13854
13854
|
*
|
|
13855
|
-
* @category repetition
|
|
13855
|
+
* @category repetition
|
|
13856
13856
|
* @since 2.0.0
|
|
13857
13857
|
*/
|
|
13858
13858
|
<Input, E, R, Output, Error, Env>(self: Effect<Input, E, R>, schedule: Schedule<Output, NoInfer<Input>, Error, Env>): Effect<Output, E | Error, R | Env>;
|
|
@@ -13929,7 +13929,7 @@ export declare const repeat: {
|
|
|
13929
13929
|
* @see {@link retry} for failure-based repetition
|
|
13930
13930
|
* @see {@link repeatOrElse} for fallback handling when repetition fails
|
|
13931
13931
|
*
|
|
13932
|
-
* @category repetition
|
|
13932
|
+
* @category repetition
|
|
13933
13933
|
* @since 2.0.0
|
|
13934
13934
|
*/
|
|
13935
13935
|
<Input, E, R, Output, Error, Env>(self: Effect<Input, E, R>, builder: ($: <O, E, R>(_: Schedule<O, NoInfer<Input>, E, R>) => Schedule<O, Input, E, R>) => Schedule<Output, NoInfer<Input>, Error, Env>): Effect<Output, E | Error, R | Env>;
|
|
@@ -13973,7 +13973,7 @@ export declare const repeat: {
|
|
|
13973
13973
|
* )
|
|
13974
13974
|
* ```
|
|
13975
13975
|
*
|
|
13976
|
-
* @category repetition
|
|
13976
|
+
* @category repetition
|
|
13977
13977
|
* @since 2.0.0
|
|
13978
13978
|
*/
|
|
13979
13979
|
export declare const repeatOrElse: {
|
|
@@ -14016,7 +14016,7 @@ export declare const repeatOrElse: {
|
|
|
14016
14016
|
* )
|
|
14017
14017
|
* ```
|
|
14018
14018
|
*
|
|
14019
|
-
* @category repetition
|
|
14019
|
+
* @category repetition
|
|
14020
14020
|
* @since 2.0.0
|
|
14021
14021
|
*/
|
|
14022
14022
|
<R2, A, B, E, E2, E3, R3>(schedule: Schedule<B, A, E2, R2>, orElse: (error: E | E2, option: Option<B>) => Effect<B, E3, R3>): <R>(self: Effect<A, E, R>) => Effect<B, E3, R | R2 | R3>;
|
|
@@ -14059,7 +14059,7 @@ export declare const repeatOrElse: {
|
|
|
14059
14059
|
* )
|
|
14060
14060
|
* ```
|
|
14061
14061
|
*
|
|
14062
|
-
* @category repetition
|
|
14062
|
+
* @category repetition
|
|
14063
14063
|
* @since 2.0.0
|
|
14064
14064
|
*/
|
|
14065
14065
|
<A, E, R, R2, B, E2, E3, R3>(self: Effect<A, E, R>, schedule: Schedule<B, A, E2, R2>, orElse: (error: E | E2, option: Option<B>) => Effect<B, E3, R3>): Effect<B, E3, R | R2 | R3>;
|
|
@@ -14292,7 +14292,7 @@ export declare const replicateEffect: {
|
|
|
14292
14292
|
* @see {@link scheduleFrom} for a variant that allows the schedule's decision
|
|
14293
14293
|
* to depend on the result of this effect.
|
|
14294
14294
|
*
|
|
14295
|
-
* @category repetition
|
|
14295
|
+
* @category repetition
|
|
14296
14296
|
* @since 2.0.0
|
|
14297
14297
|
*/
|
|
14298
14298
|
export declare const schedule: {
|
|
@@ -14340,7 +14340,7 @@ export declare const schedule: {
|
|
|
14340
14340
|
* @see {@link scheduleFrom} for a variant that allows the schedule's decision
|
|
14341
14341
|
* to depend on the result of this effect.
|
|
14342
14342
|
*
|
|
14343
|
-
* @category repetition
|
|
14343
|
+
* @category repetition
|
|
14344
14344
|
* @since 2.0.0
|
|
14345
14345
|
*/
|
|
14346
14346
|
<Output, Error, Env>(schedule: Schedule<Output, unknown, Error, Env>): <A, E, R>(self: Effect<A, E, R>) => Effect<Output, E, R | Env>;
|
|
@@ -14388,7 +14388,7 @@ export declare const schedule: {
|
|
|
14388
14388
|
* @see {@link scheduleFrom} for a variant that allows the schedule's decision
|
|
14389
14389
|
* to depend on the result of this effect.
|
|
14390
14390
|
*
|
|
14391
|
-
* @category repetition
|
|
14391
|
+
* @category repetition
|
|
14392
14392
|
* @since 2.0.0
|
|
14393
14393
|
*/
|
|
14394
14394
|
<A, E, R, Output, Error, Env>(self: Effect<A, E, R>, schedule: Schedule<Output, unknown, Error, Env>): Effect<Output, E, R | Env>;
|
|
@@ -14427,7 +14427,7 @@ export declare const schedule: {
|
|
|
14427
14427
|
* // Returns the schedule count
|
|
14428
14428
|
* ```
|
|
14429
14429
|
*
|
|
14430
|
-
* @category repetition
|
|
14430
|
+
* @category repetition
|
|
14431
14431
|
* @since 2.0.0
|
|
14432
14432
|
*/
|
|
14433
14433
|
export declare const scheduleFrom: {
|
|
@@ -14465,7 +14465,7 @@ export declare const scheduleFrom: {
|
|
|
14465
14465
|
* // Returns the schedule count
|
|
14466
14466
|
* ```
|
|
14467
14467
|
*
|
|
14468
|
-
* @category repetition
|
|
14468
|
+
* @category repetition
|
|
14469
14469
|
* @since 2.0.0
|
|
14470
14470
|
*/
|
|
14471
14471
|
<Input, Output, Error, Env>(initial: Input, schedule: Schedule<Output, Input, Error, Env>): <E, R>(self: Effect<Input, E, R>) => Effect<Output, E, R | Env>;
|
|
@@ -14503,7 +14503,7 @@ export declare const scheduleFrom: {
|
|
|
14503
14503
|
* // Returns the schedule count
|
|
14504
14504
|
* ```
|
|
14505
14505
|
*
|
|
14506
|
-
* @category repetition
|
|
14506
|
+
* @category repetition
|
|
14507
14507
|
* @since 2.0.0
|
|
14508
14508
|
*/
|
|
14509
14509
|
<Input, E, R, Output, Error, Env>(self: Effect<Input, E, R>, initial: Input, schedule: Schedule<Output, Input, Error, Env>): Effect<Output, E, R | Env>;
|
|
@@ -16029,7 +16029,7 @@ export declare const fiberId: Effect<number>;
|
|
|
16029
16029
|
* @see {@link runPromise} for promise-based running with these options
|
|
16030
16030
|
* @see {@link runPromiseExit} for promise-based running that returns an `Exit`
|
|
16031
16031
|
*
|
|
16032
|
-
* @category running
|
|
16032
|
+
* @category running
|
|
16033
16033
|
* @since 4.0.0
|
|
16034
16034
|
*/
|
|
16035
16035
|
export interface RunOptions {
|
|
@@ -16069,7 +16069,7 @@ export interface RunOptions {
|
|
|
16069
16069
|
* }, 500)
|
|
16070
16070
|
* ```
|
|
16071
16071
|
*
|
|
16072
|
-
* @category running
|
|
16072
|
+
* @category running
|
|
16073
16073
|
* @since 2.0.0
|
|
16074
16074
|
*/
|
|
16075
16075
|
export declare const runFork: <A, E>(effect: Effect<A, E, never>, options?: RunOptions | undefined) => Fiber<A, E>;
|
|
@@ -16100,7 +16100,7 @@ export declare const runFork: <A, E>(effect: Effect<A, E, never>, options?: RunO
|
|
|
16100
16100
|
* const fiber = Effect.runForkWith(services)(program)
|
|
16101
16101
|
* ```
|
|
16102
16102
|
*
|
|
16103
|
-
* @category running
|
|
16103
|
+
* @category running
|
|
16104
16104
|
* @since 4.0.0
|
|
16105
16105
|
*/
|
|
16106
16106
|
export declare const runForkWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>, options?: RunOptions | undefined) => Fiber<A, E>;
|
|
@@ -16144,7 +16144,7 @@ export declare const runForkWith: <R>(context: Context.Context<R>) => <A, E>(eff
|
|
|
16144
16144
|
* interrupt()
|
|
16145
16145
|
* ```
|
|
16146
16146
|
*
|
|
16147
|
-
* @category running
|
|
16147
|
+
* @category running
|
|
16148
16148
|
* @since 4.0.0
|
|
16149
16149
|
*/
|
|
16150
16150
|
export declare const runCallbackWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>, options?: (RunOptions & {
|
|
@@ -16187,7 +16187,7 @@ export declare const runCallbackWith: <R>(context: Context.Context<R>) => <A, E>
|
|
|
16187
16187
|
* // interrupt() to cancel the fiber if needed
|
|
16188
16188
|
* ```
|
|
16189
16189
|
*
|
|
16190
|
-
* @category running
|
|
16190
|
+
* @category running
|
|
16191
16191
|
* @since 2.0.0
|
|
16192
16192
|
*/
|
|
16193
16193
|
export declare const runCallback: <A, E>(effect: Effect<A, E, never>, options?: (RunOptions & {
|
|
@@ -16226,7 +16226,7 @@ export declare const runCallback: <A, E>(effect: Effect<A, E, never>, options?:
|
|
|
16226
16226
|
* ```
|
|
16227
16227
|
*
|
|
16228
16228
|
* @see {@link runPromiseExit} for a version that returns an `Exit` type instead of rejecting.
|
|
16229
|
-
* @category running
|
|
16229
|
+
* @category running
|
|
16230
16230
|
* @since 2.0.0
|
|
16231
16231
|
*/
|
|
16232
16232
|
export declare const runPromise: <A, E>(effect: Effect<A, E>, options?: RunOptions | undefined) => Promise<A>;
|
|
@@ -16256,7 +16256,7 @@ export declare const runPromise: <A, E>(effect: Effect<A, E>, options?: RunOptio
|
|
|
16256
16256
|
* Effect.runPromiseWith(context)(program).then(console.log)
|
|
16257
16257
|
* ```
|
|
16258
16258
|
*
|
|
16259
|
-
* @category running
|
|
16259
|
+
* @category running
|
|
16260
16260
|
* @since 4.0.0
|
|
16261
16261
|
*/
|
|
16262
16262
|
export declare const runPromiseWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>, options?: RunOptions | undefined) => Promise<A>;
|
|
@@ -16306,7 +16306,7 @@ export declare const runPromiseWith: <R>(context: Context.Context<R>) => <A, E>(
|
|
|
16306
16306
|
*
|
|
16307
16307
|
* @see {@link runPromise} for a version that rejects on failure.
|
|
16308
16308
|
*
|
|
16309
|
-
* @category running
|
|
16309
|
+
* @category running
|
|
16310
16310
|
* @since 2.0.0
|
|
16311
16311
|
*/
|
|
16312
16312
|
export declare const runPromiseExit: <A, E>(effect: Effect<A, E>, options?: RunOptions | undefined) => Promise<Exit.Exit<A, E>>;
|
|
@@ -16340,7 +16340,7 @@ export declare const runPromiseExit: <A, E>(effect: Effect<A, E>, options?: RunO
|
|
|
16340
16340
|
* })
|
|
16341
16341
|
* ```
|
|
16342
16342
|
*
|
|
16343
|
-
* @category running
|
|
16343
|
+
* @category running
|
|
16344
16344
|
* @since 4.0.0
|
|
16345
16345
|
*/
|
|
16346
16346
|
export declare const runPromiseExitWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>, options?: RunOptions | undefined) => Promise<Exit.Exit<A, E>>;
|
|
@@ -16401,7 +16401,7 @@ export declare const runPromiseExitWith: <R>(context: Context.Context<R>) => <A,
|
|
|
16401
16401
|
*
|
|
16402
16402
|
* @see {@link runSyncExit} for a version that returns an `Exit` type instead of
|
|
16403
16403
|
* throwing an error.
|
|
16404
|
-
* @category running
|
|
16404
|
+
* @category running
|
|
16405
16405
|
* @since 2.0.0
|
|
16406
16406
|
*/
|
|
16407
16407
|
export declare const runSync: <A, E>(effect: Effect<A, E>) => A;
|
|
@@ -16432,7 +16432,7 @@ export declare const runSync: <A, E>(effect: Effect<A, E>) => A;
|
|
|
16432
16432
|
* console.log(result) // 5
|
|
16433
16433
|
* ```
|
|
16434
16434
|
*
|
|
16435
|
-
* @category running
|
|
16435
|
+
* @category running
|
|
16436
16436
|
* @since 4.0.0
|
|
16437
16437
|
*/
|
|
16438
16438
|
export declare const runSyncWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>) => A;
|
|
@@ -16506,7 +16506,7 @@ export declare const runSyncWith: <R>(context: Context.Context<R>) => <A, E>(eff
|
|
|
16506
16506
|
*
|
|
16507
16507
|
* @see {@link runSync} for a version that throws on failure.
|
|
16508
16508
|
*
|
|
16509
|
-
* @category running
|
|
16509
|
+
* @category running
|
|
16510
16510
|
* @since 2.0.0
|
|
16511
16511
|
*/
|
|
16512
16512
|
export declare const runSyncExit: <A, E>(effect: Effect<A, E>) => Exit.Exit<A, E>;
|
|
@@ -16546,7 +16546,7 @@ export declare const runSyncExit: <A, E>(effect: Effect<A, E>) => Exit.Exit<A, E
|
|
|
16546
16546
|
* // Success: 42
|
|
16547
16547
|
* ```
|
|
16548
16548
|
*
|
|
16549
|
-
* @category running
|
|
16549
|
+
* @category running
|
|
16550
16550
|
* @since 4.0.0
|
|
16551
16551
|
*/
|
|
16552
16552
|
export declare const runSyncExitWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>) => Exit.Exit<A, E>;
|
|
@@ -19230,7 +19230,7 @@ export declare namespace Effectify {
|
|
|
19230
19230
|
/**
|
|
19231
19231
|
* Extracts the callback error type from a callback-based function type.
|
|
19232
19232
|
*
|
|
19233
|
-
* @category
|
|
19233
|
+
* @category effectify
|
|
19234
19234
|
* @since 4.0.0
|
|
19235
19235
|
*/
|
|
19236
19236
|
type EffectifyError<T> = T extends {
|