{
  "id": "@typed/fx#Fx.fromStream",
  "canonicalId": "@typed/fx/Fx#fromStream",
  "symbol": {
    "id": "@typed/fx#Fx.fromStream",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.fromStream",
    "kind": "constant",
    "signatures": [
      "export declare const fromStream: <A, E, R>(stream: Stream.Stream<A, E, R>, options?: FromStreamOptions) => Fx.Fx<A, E, R>;"
    ],
    "summary": "Adapts an Effect `Stream` to a push-based `Fx`.",
    "sections": {
      "Why": "Stream producers can participate in `Fx` composition without wrapping their\nbehavior in a new abstraction. Each Stream element is offered to the sink through\n`Stream.mapEffect`; Stream causes are forwarded unchanged to `sink.onFailure`.",
      "Ownership and lifetime": "Conversion starts nothing. Each `Fx.run` starts one Stream run owned by the caller's\nfiber and scope. Interruption stops the Stream and its finalizers. Delivery order\nand concurrency follow Effect Stream's `mapEffect` semantics and `options`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Stream } from \"effect\"\nimport { collectAll, fromStream } from \"@typed/fx/Fx\"\n\nconst source = fromStream(Stream.make(\"a\", \"b\"))\nconst values = collectAll(source)\nconst program = Effect.map(values, (items) => items.join(\"\"))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/stream.ts",
      "line": 125
    },
    "since": "1.0.0",
    "category": "Stream interop"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.fromStream",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.fromStream",
    "declarationKey": "declaration:c61fda5db70288cdb3a6aa4f",
    "family": "variable",
    "signatures": [
      "export declare const fromStream: <A, E, R>(stream: Stream.Stream<A, E, R>, options?: FromStreamOptions) => Fx.Fx<A, E, R>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/stream.ts",
        "start": {
          "line": 125,
          "column": 14
        },
        "end": {
          "line": 137,
          "column": 4
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#fromStream"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:c61fda5db70288cdb3a6aa4f"
  },
  "declaration": {
    "declarationKey": "declaration:c61fda5db70288cdb3a6aa4f",
    "name": "fromStream",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const fromStream: <A, E, R>(stream: Stream.Stream<A, E, R>, options?: FromStreamOptions) => Fx.Fx<A, E, R>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/stream.ts",
            "start": {
              "line": 125,
              "column": 14
            },
            "end": {
              "line": 137,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const fromStream: <A, E, R>(stream: Stream.Stream<A, E, R>, options?: FromStreamOptions) => Fx.Fx<A, E, R>;"
    ],
    "typeParameters": [],
    "summary": "Adapts an Effect `Stream` to a push-based `Fx`.",
    "sections": {
      "Why": "Stream producers can participate in `Fx` composition without wrapping their\nbehavior in a new abstraction. Each Stream element is offered to the sink through\n`Stream.mapEffect`; Stream causes are forwarded unchanged to `sink.onFailure`.",
      "Ownership and lifetime": "Conversion starts nothing. Each `Fx.run` starts one Stream run owned by the caller's\nfiber and scope. Interruption stops the Stream and its finalizers. Delivery order\nand concurrency follow Effect Stream's `mapEffect` semantics and `options`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Stream } from \"effect\"\nimport { collectAll, fromStream } from \"@typed/fx/Fx\"\n\nconst source = fromStream(Stream.make(\"a\", \"b\"))\nconst values = collectAll(source)\nconst program = Effect.map(values, (items) => items.join(\"\"))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/stream.ts",
        "start": {
          "line": 125,
          "column": 14
        },
        "end": {
          "line": 137,
          "column": 4
        }
      }
    ],
    "since": "1.0.0",
    "category": "Stream interop"
  }
}
