Minor Changes
-
#2837
9305b76
Thanks @mattrossman! - Add queuing strategy option for Stream.toReadableStream -
#2837
0f40d98
Thanks @tim-smart! - addtimeToLiveStrategy
toPool
optionsThe
timeToLiveStrategy
determines how items are invalidated. If set to
"creation", then items are invalidated based on their creation time. If set
to "usage", then items are invalidated based on pool usage.By default, the
timeToLiveStrategy
is set to "usage". -
#2837
b761ef0
Thanks @tim-smart! - add Layer.annotateLogs & Layer.annotateSpansThis allows you to add log & span annotation to a Layer.
import { Effect, Layer } from "effect"; Layer.effectDiscard(Effect.log("hello")).pipe( Layer.annotateLogs({ service: "my-service", }), );
-
#2837
b53f69b
Thanks @dilame! - Types: implementTupleOf
andTupleOfAtLeast
typesPredicate: implement
isTupleOf
andisTupleOfAtLeast
type guards -
#2837
0f40d98
Thanks @tim-smart! - addconcurrency
&targetUtilization
option toPool.make
&Pool.makeWithTTL
This option allows you to specify the level of concurrent access per pool item.
I.e. settingconcurrency: 2
will allow each pool item to be in use by 2 concurrent tasks.targetUtilization
determines when to create new pool items. It is a value
between 0 and 1, where 1 means only create new pool items when all the existing
items are fully utilized.A
targetUtilization
of 0.5 will create new pool items when the existing items are
50% utilized. -
#2837
5bd549e
Thanks @KhraksMamtsov! - Supportthis
argument for{STM, Either, Option}.gen
-
#2837
67f160a
Thanks @KhraksMamtsov! - IntroducedRedacted<out T = string>
module -Secret
generalization
Secret extends Redacted
The use of theRedacted
has been replaced by the use of theRedacted
in packages with version0.*.*