0.1.0 #1
@@ -27,7 +27,7 @@ const nonReactiveTags = [Tracer.ParentSpan] as const
|
||||
|
||||
export namespace make {
|
||||
export interface Options {
|
||||
readonly traced?: boolean
|
||||
readonly untraced?: boolean
|
||||
readonly finalizerExecutionMode?: "sync" | "fork"
|
||||
readonly finalizerExecutionStrategy?: ExecutionStrategy.ExecutionStrategy
|
||||
}
|
||||
@@ -47,11 +47,11 @@ export const make = <
|
||||
const displayName = !String.isEmpty(body.name) ? body.name : undefined
|
||||
|
||||
return Object.setPrototypeOf({
|
||||
body: (options?.traced ?? true)
|
||||
? displayName
|
||||
body: options?.untraced
|
||||
? Effect.fnUntraced(body)
|
||||
: displayName
|
||||
? Effect.fn(displayName)(body)
|
||||
: Effect.fn(body)
|
||||
: Effect.fnUntraced(body),
|
||||
: Effect.fn(body),
|
||||
displayName,
|
||||
finalizerExecutionMode: options?.finalizerExecutionMode ?? "sync",
|
||||
finalizerExecutionStrategy: options?.finalizerExecutionStrategy ?? ExecutionStrategy.sequential,
|
||||
|
||||
Reference in New Issue
Block a user