@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Variable withReporterConst

    withReporter: <A, E, R>(
        ...args: [
            options: { key: string; label: string },
            effect: (reporter: ProgressReporter) => Effect<A, E, R>,
        ],
    ) => Effect<A, E, R | TraceService> = ...

    Runs effect with a meter: starts a ProgressReporter from the ambient Trace.TraceService, hands it to effect, and ends it with the outcome.

    Type declaration

      • <A, E, R>(
            ...args: [
                options: { key: string; label: string },
                effect: (reporter: ProgressReporter) => Effect<A, E, R>,
            ],
        ): Effect<A, E, R | TraceService>
      • Type Parameters

        • A
        • E
        • R

        Parameters

        • ...args: [
              options: { key: string; label: string },
              effect: (reporter: ProgressReporter) => Effect<A, E, R>,
          ]

        Returns Effect<A, E, R | TraceService>