MCPcopy Create free account
hub / github.com/Effect-TS/effect / warn

Function warn

packages/effect/src/Console.ts:729–734  ·  view source on GitHub ↗
(...args: ReadonlyArray<any>)

Source from the content-addressed store, hash-verified

727 * @since 2.0.0
728 */
729export const warn = (...args: ReadonlyArray<any>): Effect.Effect<void> =>
730 consoleWith((console) =>
731 effect.sync(() => {
732 console.warn(...args)
733 })
734 )
735
736/**
737 * Runs an Effect inside an optionally labeled or collapsed console group, starting the group before execution and ending it after the Effect completes.

Callers

nothing calls this directly

Calls 3

consoleWithFunction · 0.85
warnMethod · 0.80
syncMethod · 0.45

Tested by

no test coverage detected