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/Deferred.d.ts
CHANGED
|
@@ -276,7 +276,7 @@ _await as await };
|
|
|
276
276
|
*
|
|
277
277
|
* @see {@link completeWith} for storing an effect directly without memoizing its result
|
|
278
278
|
*
|
|
279
|
-
* @category
|
|
279
|
+
* @category completion
|
|
280
280
|
* @since 2.0.0
|
|
281
281
|
*/
|
|
282
282
|
export declare const complete: {
|
|
@@ -311,7 +311,7 @@ export declare const complete: {
|
|
|
311
311
|
*
|
|
312
312
|
* @see {@link completeWith} for storing an effect directly without memoizing its result
|
|
313
313
|
*
|
|
314
|
-
* @category
|
|
314
|
+
* @category completion
|
|
315
315
|
* @since 2.0.0
|
|
316
316
|
*/
|
|
317
317
|
<A, E, R>(effect: Effect<A, E, R>): (self: Deferred<A, E>) => Effect<boolean, never, R>;
|
|
@@ -346,7 +346,7 @@ export declare const complete: {
|
|
|
346
346
|
*
|
|
347
347
|
* @see {@link completeWith} for storing an effect directly without memoizing its result
|
|
348
348
|
*
|
|
349
|
-
* @category
|
|
349
|
+
* @category completion
|
|
350
350
|
* @since 2.0.0
|
|
351
351
|
*/
|
|
352
352
|
<A, E, R>(self: Deferred<A, E>, effect: Effect<A, E, R>): Effect<boolean, never, R>;
|
|
@@ -387,7 +387,7 @@ export declare const complete: {
|
|
|
387
387
|
* @see {@link complete} for running an effect once and sharing its result
|
|
388
388
|
* @see {@link done} for completing from an already computed `Exit`
|
|
389
389
|
*
|
|
390
|
-
* @category
|
|
390
|
+
* @category completion
|
|
391
391
|
* @since 2.0.0
|
|
392
392
|
*/
|
|
393
393
|
export declare const completeWith: {
|
|
@@ -427,7 +427,7 @@ export declare const completeWith: {
|
|
|
427
427
|
* @see {@link complete} for running an effect once and sharing its result
|
|
428
428
|
* @see {@link done} for completing from an already computed `Exit`
|
|
429
429
|
*
|
|
430
|
-
* @category
|
|
430
|
+
* @category completion
|
|
431
431
|
* @since 2.0.0
|
|
432
432
|
*/
|
|
433
433
|
<A, E>(effect: Effect<A, E>): (self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -467,7 +467,7 @@ export declare const completeWith: {
|
|
|
467
467
|
* @see {@link complete} for running an effect once and sharing its result
|
|
468
468
|
* @see {@link done} for completing from an already computed `Exit`
|
|
469
469
|
*
|
|
470
|
-
* @category
|
|
470
|
+
* @category completion
|
|
471
471
|
* @since 2.0.0
|
|
472
472
|
*/
|
|
473
473
|
<A, E>(self: Deferred<A, E>, effect: Effect<A, E>): Effect<boolean>;
|
|
@@ -504,7 +504,7 @@ export declare const completeWith: {
|
|
|
504
504
|
* @see {@link succeed} for completing with a success value
|
|
505
505
|
* @see {@link failCause} for completing with a failure cause
|
|
506
506
|
*
|
|
507
|
-
* @category
|
|
507
|
+
* @category completion
|
|
508
508
|
* @since 2.0.0
|
|
509
509
|
*/
|
|
510
510
|
export declare const done: {
|
|
@@ -540,7 +540,7 @@ export declare const done: {
|
|
|
540
540
|
* @see {@link succeed} for completing with a success value
|
|
541
541
|
* @see {@link failCause} for completing with a failure cause
|
|
542
542
|
*
|
|
543
|
-
* @category
|
|
543
|
+
* @category completion
|
|
544
544
|
* @since 2.0.0
|
|
545
545
|
*/
|
|
546
546
|
<A, E>(exit: Exit.Exit<A, E>): (self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -576,7 +576,7 @@ export declare const done: {
|
|
|
576
576
|
* @see {@link succeed} for completing with a success value
|
|
577
577
|
* @see {@link failCause} for completing with a failure cause
|
|
578
578
|
*
|
|
579
|
-
* @category
|
|
579
|
+
* @category completion
|
|
580
580
|
* @since 2.0.0
|
|
581
581
|
*/
|
|
582
582
|
<A, E>(self: Deferred<A, E>, exit: Exit.Exit<A, E>): Effect<boolean>;
|
|
@@ -606,7 +606,7 @@ export declare const done: {
|
|
|
606
606
|
* })
|
|
607
607
|
* ```
|
|
608
608
|
*
|
|
609
|
-
* @category
|
|
609
|
+
* @category completion
|
|
610
610
|
* @since 2.0.0
|
|
611
611
|
*/
|
|
612
612
|
export declare const fail: {
|
|
@@ -635,7 +635,7 @@ export declare const fail: {
|
|
|
635
635
|
* })
|
|
636
636
|
* ```
|
|
637
637
|
*
|
|
638
|
-
* @category
|
|
638
|
+
* @category completion
|
|
639
639
|
* @since 2.0.0
|
|
640
640
|
*/
|
|
641
641
|
<E>(error: E): <A>(self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -664,7 +664,7 @@ export declare const fail: {
|
|
|
664
664
|
* })
|
|
665
665
|
* ```
|
|
666
666
|
*
|
|
667
|
-
* @category
|
|
667
|
+
* @category completion
|
|
668
668
|
* @since 2.0.0
|
|
669
669
|
*/
|
|
670
670
|
<A, E>(self: Deferred<A, E>, error: E): Effect<boolean>;
|
|
@@ -695,7 +695,7 @@ export declare const fail: {
|
|
|
695
695
|
* })
|
|
696
696
|
* ```
|
|
697
697
|
*
|
|
698
|
-
* @category
|
|
698
|
+
* @category completion
|
|
699
699
|
* @since 2.0.0
|
|
700
700
|
*/
|
|
701
701
|
export declare const failSync: {
|
|
@@ -725,7 +725,7 @@ export declare const failSync: {
|
|
|
725
725
|
* })
|
|
726
726
|
* ```
|
|
727
727
|
*
|
|
728
|
-
* @category
|
|
728
|
+
* @category completion
|
|
729
729
|
* @since 2.0.0
|
|
730
730
|
*/
|
|
731
731
|
<E>(evaluate: LazyArg<E>): <A>(self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -755,7 +755,7 @@ export declare const failSync: {
|
|
|
755
755
|
* })
|
|
756
756
|
* ```
|
|
757
757
|
*
|
|
758
|
-
* @category
|
|
758
|
+
* @category completion
|
|
759
759
|
* @since 2.0.0
|
|
760
760
|
*/
|
|
761
761
|
<A, E>(self: Deferred<A, E>, evaluate: LazyArg<E>): Effect<boolean>;
|
|
@@ -788,7 +788,7 @@ export declare const failSync: {
|
|
|
788
788
|
* })
|
|
789
789
|
* ```
|
|
790
790
|
*
|
|
791
|
-
* @category
|
|
791
|
+
* @category completion
|
|
792
792
|
* @since 2.0.0
|
|
793
793
|
*/
|
|
794
794
|
export declare const failCause: {
|
|
@@ -820,7 +820,7 @@ export declare const failCause: {
|
|
|
820
820
|
* })
|
|
821
821
|
* ```
|
|
822
822
|
*
|
|
823
|
-
* @category
|
|
823
|
+
* @category completion
|
|
824
824
|
* @since 2.0.0
|
|
825
825
|
*/
|
|
826
826
|
<E>(cause: Cause.Cause<E>): <A>(self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -852,7 +852,7 @@ export declare const failCause: {
|
|
|
852
852
|
* })
|
|
853
853
|
* ```
|
|
854
854
|
*
|
|
855
|
-
* @category
|
|
855
|
+
* @category completion
|
|
856
856
|
* @since 2.0.0
|
|
857
857
|
*/
|
|
858
858
|
<A, E>(self: Deferred<A, E>, cause: Cause.Cause<E>): Effect<boolean>;
|
|
@@ -886,7 +886,7 @@ export declare const failCause: {
|
|
|
886
886
|
* })
|
|
887
887
|
* ```
|
|
888
888
|
*
|
|
889
|
-
* @category
|
|
889
|
+
* @category completion
|
|
890
890
|
* @since 2.0.0
|
|
891
891
|
*/
|
|
892
892
|
export declare const failCauseSync: {
|
|
@@ -919,7 +919,7 @@ export declare const failCauseSync: {
|
|
|
919
919
|
* })
|
|
920
920
|
* ```
|
|
921
921
|
*
|
|
922
|
-
* @category
|
|
922
|
+
* @category completion
|
|
923
923
|
* @since 2.0.0
|
|
924
924
|
*/
|
|
925
925
|
<E>(evaluate: LazyArg<Cause.Cause<E>>): <A>(self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -952,7 +952,7 @@ export declare const failCauseSync: {
|
|
|
952
952
|
* })
|
|
953
953
|
* ```
|
|
954
954
|
*
|
|
955
|
-
* @category
|
|
955
|
+
* @category completion
|
|
956
956
|
* @since 2.0.0
|
|
957
957
|
*/
|
|
958
958
|
<A, E>(self: Deferred<A, E>, evaluate: LazyArg<Cause.Cause<E>>): Effect<boolean>;
|
|
@@ -985,7 +985,7 @@ export declare const failCauseSync: {
|
|
|
985
985
|
* })
|
|
986
986
|
* ```
|
|
987
987
|
*
|
|
988
|
-
* @category
|
|
988
|
+
* @category completion
|
|
989
989
|
* @since 2.0.0
|
|
990
990
|
*/
|
|
991
991
|
export declare const die: {
|
|
@@ -1017,7 +1017,7 @@ export declare const die: {
|
|
|
1017
1017
|
* })
|
|
1018
1018
|
* ```
|
|
1019
1019
|
*
|
|
1020
|
-
* @category
|
|
1020
|
+
* @category completion
|
|
1021
1021
|
* @since 2.0.0
|
|
1022
1022
|
*/
|
|
1023
1023
|
(defect: unknown): <A, E>(self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -1049,7 +1049,7 @@ export declare const die: {
|
|
|
1049
1049
|
* })
|
|
1050
1050
|
* ```
|
|
1051
1051
|
*
|
|
1052
|
-
* @category
|
|
1052
|
+
* @category completion
|
|
1053
1053
|
* @since 2.0.0
|
|
1054
1054
|
*/
|
|
1055
1055
|
<A, E>(self: Deferred<A, E>, defect: unknown): Effect<boolean>;
|
|
@@ -1083,7 +1083,7 @@ export declare const die: {
|
|
|
1083
1083
|
* })
|
|
1084
1084
|
* ```
|
|
1085
1085
|
*
|
|
1086
|
-
* @category
|
|
1086
|
+
* @category completion
|
|
1087
1087
|
* @since 2.0.0
|
|
1088
1088
|
*/
|
|
1089
1089
|
export declare const dieSync: {
|
|
@@ -1116,7 +1116,7 @@ export declare const dieSync: {
|
|
|
1116
1116
|
* })
|
|
1117
1117
|
* ```
|
|
1118
1118
|
*
|
|
1119
|
-
* @category
|
|
1119
|
+
* @category completion
|
|
1120
1120
|
* @since 2.0.0
|
|
1121
1121
|
*/
|
|
1122
1122
|
(evaluate: LazyArg<unknown>): <A, E>(self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -1149,7 +1149,7 @@ export declare const dieSync: {
|
|
|
1149
1149
|
* })
|
|
1150
1150
|
* ```
|
|
1151
1151
|
*
|
|
1152
|
-
* @category
|
|
1152
|
+
* @category completion
|
|
1153
1153
|
* @since 2.0.0
|
|
1154
1154
|
*/
|
|
1155
1155
|
<A, E>(self: Deferred<A, E>, evaluate: LazyArg<unknown>): Effect<boolean>;
|
|
@@ -1180,7 +1180,7 @@ export declare const dieSync: {
|
|
|
1180
1180
|
* })
|
|
1181
1181
|
* ```
|
|
1182
1182
|
*
|
|
1183
|
-
* @category
|
|
1183
|
+
* @category completion
|
|
1184
1184
|
* @since 2.0.0
|
|
1185
1185
|
*/
|
|
1186
1186
|
export declare const interrupt: <A, E>(self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -1210,7 +1210,7 @@ export declare const interrupt: <A, E>(self: Deferred<A, E>) => Effect<boolean>;
|
|
|
1210
1210
|
* })
|
|
1211
1211
|
* ```
|
|
1212
1212
|
*
|
|
1213
|
-
* @category
|
|
1213
|
+
* @category completion
|
|
1214
1214
|
* @since 2.0.0
|
|
1215
1215
|
*/
|
|
1216
1216
|
export declare const interruptWith: {
|
|
@@ -1240,7 +1240,7 @@ export declare const interruptWith: {
|
|
|
1240
1240
|
* })
|
|
1241
1241
|
* ```
|
|
1242
1242
|
*
|
|
1243
|
-
* @category
|
|
1243
|
+
* @category completion
|
|
1244
1244
|
* @since 2.0.0
|
|
1245
1245
|
*/
|
|
1246
1246
|
(fiberId: number): <A, E>(self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -1270,7 +1270,7 @@ export declare const interruptWith: {
|
|
|
1270
1270
|
* })
|
|
1271
1271
|
* ```
|
|
1272
1272
|
*
|
|
1273
|
-
* @category
|
|
1273
|
+
* @category completion
|
|
1274
1274
|
* @since 2.0.0
|
|
1275
1275
|
*/
|
|
1276
1276
|
<A, E>(self: Deferred<A, E>, fiberId: number): Effect<boolean>;
|
|
@@ -1375,7 +1375,7 @@ export declare function poll<A, E>(self: Deferred<A, E>): Effect<Option.Option<E
|
|
|
1375
1375
|
* })
|
|
1376
1376
|
* ```
|
|
1377
1377
|
*
|
|
1378
|
-
* @category
|
|
1378
|
+
* @category completion
|
|
1379
1379
|
* @since 2.0.0
|
|
1380
1380
|
*/
|
|
1381
1381
|
export declare const succeed: {
|
|
@@ -1406,7 +1406,7 @@ export declare const succeed: {
|
|
|
1406
1406
|
* })
|
|
1407
1407
|
* ```
|
|
1408
1408
|
*
|
|
1409
|
-
* @category
|
|
1409
|
+
* @category completion
|
|
1410
1410
|
* @since 2.0.0
|
|
1411
1411
|
*/
|
|
1412
1412
|
<A>(value: A): <E>(self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -1437,7 +1437,7 @@ export declare const succeed: {
|
|
|
1437
1437
|
* })
|
|
1438
1438
|
* ```
|
|
1439
1439
|
*
|
|
1440
|
-
* @category
|
|
1440
|
+
* @category completion
|
|
1441
1441
|
* @since 2.0.0
|
|
1442
1442
|
*/
|
|
1443
1443
|
<A, E>(self: Deferred<A, E>, value: A): Effect<boolean>;
|
|
@@ -1470,7 +1470,7 @@ export declare const succeed: {
|
|
|
1470
1470
|
* })
|
|
1471
1471
|
* ```
|
|
1472
1472
|
*
|
|
1473
|
-
* @category
|
|
1473
|
+
* @category completion
|
|
1474
1474
|
* @since 2.0.0
|
|
1475
1475
|
*/
|
|
1476
1476
|
export declare const sync: {
|
|
@@ -1502,7 +1502,7 @@ export declare const sync: {
|
|
|
1502
1502
|
* })
|
|
1503
1503
|
* ```
|
|
1504
1504
|
*
|
|
1505
|
-
* @category
|
|
1505
|
+
* @category completion
|
|
1506
1506
|
* @since 2.0.0
|
|
1507
1507
|
*/
|
|
1508
1508
|
<A>(evaluate: LazyArg<A>): <E>(self: Deferred<A, E>) => Effect<boolean>;
|
|
@@ -1534,7 +1534,7 @@ export declare const sync: {
|
|
|
1534
1534
|
* })
|
|
1535
1535
|
* ```
|
|
1536
1536
|
*
|
|
1537
|
-
* @category
|
|
1537
|
+
* @category completion
|
|
1538
1538
|
* @since 2.0.0
|
|
1539
1539
|
*/
|
|
1540
1540
|
<A, E>(self: Deferred<A, E>, evaluate: LazyArg<A>): Effect<boolean>;
|
package/dist/Deferred.js
CHANGED
|
@@ -151,7 +151,7 @@ _await as await };
|
|
|
151
151
|
*
|
|
152
152
|
* @see {@link completeWith} for storing an effect directly without memoizing its result
|
|
153
153
|
*
|
|
154
|
-
* @category
|
|
154
|
+
* @category completion
|
|
155
155
|
* @since 2.0.0
|
|
156
156
|
*/
|
|
157
157
|
export const complete = /*#__PURE__*/dual(2, (self, effect) => internalEffect.suspend(() => self.effect ? internalEffect.succeed(false) : into(effect, self)));
|
|
@@ -191,7 +191,7 @@ export const complete = /*#__PURE__*/dual(2, (self, effect) => internalEffect.su
|
|
|
191
191
|
* @see {@link complete} for running an effect once and sharing its result
|
|
192
192
|
* @see {@link done} for completing from an already computed `Exit`
|
|
193
193
|
*
|
|
194
|
-
* @category
|
|
194
|
+
* @category completion
|
|
195
195
|
* @since 2.0.0
|
|
196
196
|
*/
|
|
197
197
|
export const completeWith = /*#__PURE__*/dual(2, (self, effect) => internalEffect.sync(() => doneUnsafe(self, effect)));
|
|
@@ -227,7 +227,7 @@ export const completeWith = /*#__PURE__*/dual(2, (self, effect) => internalEffec
|
|
|
227
227
|
* @see {@link succeed} for completing with a success value
|
|
228
228
|
* @see {@link failCause} for completing with a failure cause
|
|
229
229
|
*
|
|
230
|
-
* @category
|
|
230
|
+
* @category completion
|
|
231
231
|
* @since 2.0.0
|
|
232
232
|
*/
|
|
233
233
|
export const done = completeWith;
|
|
@@ -256,7 +256,7 @@ export const done = completeWith;
|
|
|
256
256
|
* })
|
|
257
257
|
* ```
|
|
258
258
|
*
|
|
259
|
-
* @category
|
|
259
|
+
* @category completion
|
|
260
260
|
* @since 2.0.0
|
|
261
261
|
*/
|
|
262
262
|
export const fail = /*#__PURE__*/dual(2, (self, error) => done(self, core.exitFail(error)));
|
|
@@ -286,7 +286,7 @@ export const fail = /*#__PURE__*/dual(2, (self, error) => done(self, core.exitFa
|
|
|
286
286
|
* })
|
|
287
287
|
* ```
|
|
288
288
|
*
|
|
289
|
-
* @category
|
|
289
|
+
* @category completion
|
|
290
290
|
* @since 2.0.0
|
|
291
291
|
*/
|
|
292
292
|
export const failSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => fail(self, evaluate())));
|
|
@@ -318,7 +318,7 @@ export const failSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.
|
|
|
318
318
|
* })
|
|
319
319
|
* ```
|
|
320
320
|
*
|
|
321
|
-
* @category
|
|
321
|
+
* @category completion
|
|
322
322
|
* @since 2.0.0
|
|
323
323
|
*/
|
|
324
324
|
export const failCause = /*#__PURE__*/dual(2, (self, cause) => done(self, core.exitFailCause(cause)));
|
|
@@ -351,7 +351,7 @@ export const failCause = /*#__PURE__*/dual(2, (self, cause) => done(self, core.e
|
|
|
351
351
|
* })
|
|
352
352
|
* ```
|
|
353
353
|
*
|
|
354
|
-
* @category
|
|
354
|
+
* @category completion
|
|
355
355
|
* @since 2.0.0
|
|
356
356
|
*/
|
|
357
357
|
export const failCauseSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => failCause(self, evaluate())));
|
|
@@ -383,7 +383,7 @@ export const failCauseSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEf
|
|
|
383
383
|
* })
|
|
384
384
|
* ```
|
|
385
385
|
*
|
|
386
|
-
* @category
|
|
386
|
+
* @category completion
|
|
387
387
|
* @since 2.0.0
|
|
388
388
|
*/
|
|
389
389
|
export const die = /*#__PURE__*/dual(2, (self, defect) => done(self, core.exitDie(defect)));
|
|
@@ -416,7 +416,7 @@ export const die = /*#__PURE__*/dual(2, (self, defect) => done(self, core.exitDi
|
|
|
416
416
|
* })
|
|
417
417
|
* ```
|
|
418
418
|
*
|
|
419
|
-
* @category
|
|
419
|
+
* @category completion
|
|
420
420
|
* @since 2.0.0
|
|
421
421
|
*/
|
|
422
422
|
export const dieSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => die(self, evaluate())));
|
|
@@ -446,7 +446,7 @@ export const dieSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.s
|
|
|
446
446
|
* })
|
|
447
447
|
* ```
|
|
448
448
|
*
|
|
449
|
-
* @category
|
|
449
|
+
* @category completion
|
|
450
450
|
* @since 2.0.0
|
|
451
451
|
*/
|
|
452
452
|
export const interrupt = self => core.withFiber(fiber => interruptWith(self, fiber.id));
|
|
@@ -476,7 +476,7 @@ export const interrupt = self => core.withFiber(fiber => interruptWith(self, fib
|
|
|
476
476
|
* })
|
|
477
477
|
* ```
|
|
478
478
|
*
|
|
479
|
-
* @category
|
|
479
|
+
* @category completion
|
|
480
480
|
* @since 2.0.0
|
|
481
481
|
*/
|
|
482
482
|
export const interruptWith = /*#__PURE__*/dual(2, (self, fiberId) => failCause(self, internalEffect.causeInterrupt(fiberId)));
|
|
@@ -582,7 +582,7 @@ export function poll(self) {
|
|
|
582
582
|
* })
|
|
583
583
|
* ```
|
|
584
584
|
*
|
|
585
|
-
* @category
|
|
585
|
+
* @category completion
|
|
586
586
|
* @since 2.0.0
|
|
587
587
|
*/
|
|
588
588
|
export const succeed = /*#__PURE__*/dual(2, (self, value) => done(self, core.exitSucceed(value)));
|
|
@@ -614,7 +614,7 @@ export const succeed = /*#__PURE__*/dual(2, (self, value) => done(self, core.exi
|
|
|
614
614
|
* })
|
|
615
615
|
* ```
|
|
616
616
|
*
|
|
617
|
-
* @category
|
|
617
|
+
* @category completion
|
|
618
618
|
* @since 2.0.0
|
|
619
619
|
*/
|
|
620
620
|
export const sync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => succeed(self, evaluate())));
|
package/dist/Duration.d.ts
CHANGED
|
@@ -1044,7 +1044,7 @@ export declare const min: {
|
|
|
1044
1044
|
* console.log(Duration.toSeconds(longer)) // 5
|
|
1045
1045
|
* ```
|
|
1046
1046
|
*
|
|
1047
|
-
* @category
|
|
1047
|
+
* @category ordering
|
|
1048
1048
|
* @since 2.0.0
|
|
1049
1049
|
*/
|
|
1050
1050
|
export declare const max: {
|
|
@@ -1060,7 +1060,7 @@ export declare const max: {
|
|
|
1060
1060
|
* console.log(Duration.toSeconds(longer)) // 5
|
|
1061
1061
|
* ```
|
|
1062
1062
|
*
|
|
1063
|
-
* @category
|
|
1063
|
+
* @category ordering
|
|
1064
1064
|
* @since 2.0.0
|
|
1065
1065
|
*/
|
|
1066
1066
|
(that: Duration): (self: Duration) => Duration;
|
|
@@ -1076,7 +1076,7 @@ export declare const max: {
|
|
|
1076
1076
|
* console.log(Duration.toSeconds(longer)) // 5
|
|
1077
1077
|
* ```
|
|
1078
1078
|
*
|
|
1079
|
-
* @category
|
|
1079
|
+
* @category ordering
|
|
1080
1080
|
* @since 2.0.0
|
|
1081
1081
|
*/
|
|
1082
1082
|
(self: Duration, that: Duration): Duration;
|
|
@@ -1096,7 +1096,7 @@ export declare const max: {
|
|
|
1096
1096
|
* console.log(Duration.toSeconds(clamped)) // 5
|
|
1097
1097
|
* ```
|
|
1098
1098
|
*
|
|
1099
|
-
* @category
|
|
1099
|
+
* @category ordering
|
|
1100
1100
|
* @since 2.0.0
|
|
1101
1101
|
*/
|
|
1102
1102
|
export declare const clamp: {
|
|
@@ -1115,7 +1115,7 @@ export declare const clamp: {
|
|
|
1115
1115
|
* console.log(Duration.toSeconds(clamped)) // 5
|
|
1116
1116
|
* ```
|
|
1117
1117
|
*
|
|
1118
|
-
* @category
|
|
1118
|
+
* @category ordering
|
|
1119
1119
|
* @since 2.0.0
|
|
1120
1120
|
*/
|
|
1121
1121
|
(options: {
|
|
@@ -1137,7 +1137,7 @@ export declare const clamp: {
|
|
|
1137
1137
|
* console.log(Duration.toSeconds(clamped)) // 5
|
|
1138
1138
|
* ```
|
|
1139
1139
|
*
|
|
1140
|
-
* @category
|
|
1140
|
+
* @category ordering
|
|
1141
1141
|
* @since 2.0.0
|
|
1142
1142
|
*/
|
|
1143
1143
|
(self: Duration, options: {
|
package/dist/Duration.js
CHANGED
|
@@ -1031,7 +1031,7 @@ export const min = /*#__PURE__*/order.min(Order);
|
|
|
1031
1031
|
* console.log(Duration.toSeconds(longer)) // 5
|
|
1032
1032
|
* ```
|
|
1033
1033
|
*
|
|
1034
|
-
* @category
|
|
1034
|
+
* @category ordering
|
|
1035
1035
|
* @since 2.0.0
|
|
1036
1036
|
*/
|
|
1037
1037
|
export const max = /*#__PURE__*/order.max(Order);
|
|
@@ -1050,7 +1050,7 @@ export const max = /*#__PURE__*/order.max(Order);
|
|
|
1050
1050
|
* console.log(Duration.toSeconds(clamped)) // 5
|
|
1051
1051
|
* ```
|
|
1052
1052
|
*
|
|
1053
|
-
* @category
|
|
1053
|
+
* @category ordering
|
|
1054
1054
|
* @since 2.0.0
|
|
1055
1055
|
*/
|
|
1056
1056
|
export const clamp = /*#__PURE__*/order.clamp(Order);
|