{
  "id": "@typed/fx#Push.make",
  "canonicalId": "@typed/fx/Push#make",
  "symbol": {
    "id": "@typed/fx#Push.make",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Push.make",
    "kind": "constant",
    "signatures": [
      "export declare const make: {\n    <B, E2, R2>(fx: Fx.Fx<B, E2, R2>): <A, E, R>(sink: Sink.Sink<A, E, R>) => Push<A, E, R, B, E2, R2>;\n    <A, E, R, B, E2, R2>(sink: Sink.Sink<A, E, R>, fx: Fx.Fx<B, E2, R2>): Push<A, E, R, B, E2, R2>;\n};"
    ],
    "summary": "Couples a `Sink` input with an independent `Fx` output.\n\nThe result forwards each input callback directly to `sink` and delegates every\noutput subscription to `fx`. It does not connect the two values, change output\ncardinality or ordering, buffer inputs, or start either side eagerly.",
    "sections": {
      "Why": "`make` is the explicit boundary where a command consumer and event producer\nbecome one bidirectional capability without hiding either contract.",
      "Ownership and lifetime": "Construction is allocation-free apart from the wrapper. Each input callback is\nowned by its caller; each output run is owned by the wrapped Fx run and inherits\nits interruption, Scope, cleanup, failures, and services."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Push from \"@typed/fx/Push\"\nimport { Fx } from \"@typed/fx\"\nimport * as Sink from \"@typed/fx/Sink\"\n\nconst received: Array<number> = []\nconst sink = Sink.make(() => Effect.void, (value: number) =>\n  Effect.sync(() => received.push(value))\n)\nconst push = Push.make(sink, Fx.fromIterable([\"ready\", \"done\"]))\n\nconst program = Effect.gen(function* () {\n  yield* push.onSuccess(42) // acknowledges the Sink callback\n  const output = yield* Fx.collectAll(push)\n  return { received, output }\n}).pipe(Effect.scoped)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Push/Push.ts",
      "line": 339
    },
    "since": "1.0.0",
    "category": "Push construction"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Push.make",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Push",
    "qualifiedName": "Push.make",
    "declarationKey": "declaration:da42586379b4c17b1b3b1f03",
    "family": "variable",
    "signatures": [
      "export declare const make: {\n    <B, E2, R2>(fx: Fx.Fx<B, E2, R2>): <A, E, R>(sink: Sink.Sink<A, E, R>) => Push<A, E, R, B, E2, R2>;\n    <A, E, R, B, E2, R2>(sink: Sink.Sink<A, E, R>, fx: Fx.Fx<B, E2, R2>): Push<A, E, R, B, E2, R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 339,
          "column": 14
        },
        "end": {
          "line": 344,
          "column": 90
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 340,
          "column": 3
        },
        "end": {
          "line": 342,
          "column": 70
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 343,
          "column": 3
        },
        "end": {
          "line": 343,
          "column": 98
        }
      }
    ],
    "aliases": [
      "@typed/fx/Push#make"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Push",
    "static": false,
    "importedFrom": "declaration:da42586379b4c17b1b3b1f03"
  },
  "declaration": {
    "declarationKey": "declaration:da42586379b4c17b1b3b1f03",
    "name": "make",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const make: {\n    <B, E2, R2>(fx: Fx.Fx<B, E2, R2>): <A, E, R>(sink: Sink.Sink<A, E, R>) => Push<A, E, R, B, E2, R2>;\n    <A, E, R, B, E2, R2>(sink: Sink.Sink<A, E, R>, fx: Fx.Fx<B, E2, R2>): Push<A, E, R, B, E2, R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 339,
              "column": 14
            },
            "end": {
              "line": 344,
              "column": 90
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<B, E2, R2>(fx: Fx.Fx<B, E2, R2>): <A, E, R>(sink: Sink.Sink<A, E, R>) => Push<A, E, R, B, E2, R2>;",
          "<A, E, R, B, E2, R2>(sink: Sink.Sink<A, E, R>, fx: Fx.Fx<B, E2, R2>): Push<A, E, R, B, E2, R2>;"
        ],
        "typeParameters": [
          "B",
          "E2",
          "R2",
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 340,
              "column": 3
            },
            "end": {
              "line": 342,
              "column": 70
            }
          },
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 343,
              "column": 3
            },
            "end": {
              "line": 343,
              "column": 98
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const make: {\n    <B, E2, R2>(fx: Fx.Fx<B, E2, R2>): <A, E, R>(sink: Sink.Sink<A, E, R>) => Push<A, E, R, B, E2, R2>;\n    <A, E, R, B, E2, R2>(sink: Sink.Sink<A, E, R>, fx: Fx.Fx<B, E2, R2>): Push<A, E, R, B, E2, R2>;\n};"
    ],
    "typeParameters": [
      "B",
      "E2",
      "R2",
      "A",
      "E",
      "R"
    ],
    "summary": "Couples a `Sink` input with an independent `Fx` output.\n\nThe result forwards each input callback directly to `sink` and delegates every\noutput subscription to `fx`. It does not connect the two values, change output\ncardinality or ordering, buffer inputs, or start either side eagerly.",
    "sections": {
      "Why": "`make` is the explicit boundary where a command consumer and event producer\nbecome one bidirectional capability without hiding either contract.",
      "Ownership and lifetime": "Construction is allocation-free apart from the wrapper. Each input callback is\nowned by its caller; each output run is owned by the wrapped Fx run and inherits\nits interruption, Scope, cleanup, failures, and services."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Push from \"@typed/fx/Push\"\nimport { Fx } from \"@typed/fx\"\nimport * as Sink from \"@typed/fx/Sink\"\n\nconst received: Array<number> = []\nconst sink = Sink.make(() => Effect.void, (value: number) =>\n  Effect.sync(() => received.push(value))\n)\nconst push = Push.make(sink, Fx.fromIterable([\"ready\", \"done\"]))\n\nconst program = Effect.gen(function* () {\n  yield* push.onSuccess(42) // acknowledges the Sink callback\n  const output = yield* Fx.collectAll(push)\n  return { received, output }\n}).pipe(Effect.scoped)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 339,
          "column": 14
        },
        "end": {
          "line": 344,
          "column": 90
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 340,
          "column": 3
        },
        "end": {
          "line": 342,
          "column": 70
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 343,
          "column": 3
        },
        "end": {
          "line": 343,
          "column": 98
        }
      }
    ],
    "since": "1.0.0",
    "category": "Push construction"
  }
}
