Restate Typescript SDK
    Preparing search index...
    interface Channel<T> {
        receive: Future<T>;
        send(value: T): Operation<void>;
    }

    Type Parameters

    • T
    Index

    Properties

    Methods

    Properties

    receive: Future<T>

    Methods

    • Yieldable. Use as yield* ch.send(value) from within a gen body. The first call settles the channel; subsequent calls are silently dropped (idempotent).

      Return value is Operation<void> rather than void so the only way to fire send is via yield* inside a fiber — which enforces the channel-is-intra-workflow contract at the type level.

      Parameters

      • value: T

      Returns Operation<void>