Hyperlinkv0.8.0-beta.28

Function

Function.constVoidconsteffect/Function.ts:430
(): void

Returns no meaningful value when called.

When to use

Use when you need a thunk that is called only for its effect and has no meaningful return value.

Example (Returning void from a thunk)

import { Function } from "effect"
import * as assert from "node:assert"

assert.deepStrictEqual(Function.constVoid(), undefined)
constants
export const constVoid: LazyArg<void> = constUndefined
Referenced by 9 symbols