{
  "id": "@typed/fx#RefBoolean.toggle",
  "canonicalId": "@typed/fx/RefBoolean#toggle",
  "symbol": {
    "id": "@typed/fx#RefBoolean.toggle",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefBoolean.toggle",
    "kind": "constant",
    "signatures": [
      "export declare const toggle: <E, R>(ref: RefBoolean<E, R>) => Effect.Effect<boolean, E, R>;"
    ],
    "summary": "Toggle the current state of a RefBoolean.",
    "sections": {
      "Why": "Keeps toggle atomic with respect to competing RefSubject writes instead of splitting the read\nand replacement into separate effects.",
      "Ownership and lifetime": "Running toggle performs one serialized boolean transition and resolves with its committed value.\nIt acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefBoolean.ts",
      "line": 89
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefBoolean.toggle",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefBoolean",
    "qualifiedName": "RefBoolean.toggle",
    "declarationKey": "declaration:bfa6bc10b5cce15273a17fae",
    "family": "variable",
    "signatures": [
      "export declare const toggle: <E, R>(ref: RefBoolean<E, R>) => Effect.Effect<boolean, E, R>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefBoolean.ts",
        "start": {
          "line": 89,
          "column": 14
        },
        "end": {
          "line": 90,
          "column": 39
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefBoolean#toggle"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefBoolean",
    "static": false,
    "importedFrom": "declaration:bfa6bc10b5cce15273a17fae"
  },
  "declaration": {
    "declarationKey": "declaration:bfa6bc10b5cce15273a17fae",
    "name": "toggle",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const toggle: <E, R>(ref: RefBoolean<E, R>) => Effect.Effect<boolean, E, R>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefBoolean.ts",
            "start": {
              "line": 89,
              "column": 14
            },
            "end": {
              "line": 90,
              "column": 39
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const toggle: <E, R>(ref: RefBoolean<E, R>) => Effect.Effect<boolean, E, R>;"
    ],
    "typeParameters": [],
    "summary": "Toggle the current state of a RefBoolean.",
    "sections": {
      "Why": "Keeps toggle atomic with respect to competing RefSubject writes instead of splitting the read\nand replacement into separate effects.",
      "Ownership and lifetime": "Running toggle performs one serialized boolean transition and resolves with its committed value.\nIt acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefBoolean.ts",
        "start": {
          "line": 89,
          "column": 14
        },
        "end": {
          "line": 90,
          "column": 39
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
