# RefBoolean.make

Creates a new `RefBoolean` from a boolean, `Effect`, or `Fx`.

## Signatures

```ts
export declare function make<E = never, R = never>(initial: boolean | Effect.Effect<boolean, E, R> | Fx.Fx<boolean, E, R>, eq?: Equivalence<boolean>): Effect.Effect<RefBoolean<E>, never, R | Scope.Scope>;
```

## Why

Creates boolean state with equality suited to that Effect data type, so unchanged values do not
produce redundant pushed updates.

## Ownership and lifetime

The creation Effect requires Scope. It owns initializer acquisition, live source subscriptions,
and cleanup; source failures and services stay on reads and pushes.

## Examples

```ts
import { Effect } from "effect"
import * as RefBoolean from "@typed/fx/RefBoolean"

const program = Effect.gen(function* () {
  const value = yield* RefBoolean.make(true)
  const current = yield* value
  console.log(current) // true
})
```
