happy-rusty
    Preparing search index...

    Function Continue

    • Creates a Continue variant of ControlFlow.

      Use this to signal that an operation should continue as normal.

      Type Parameters

      • B = never

        The type of the break value (defaults to void when a value is provided).

      • C = void

        The type of the continue value.

      Parameters

      • value: C

        The value to carry forward (optional, defaults to undefined).

      Returns ControlFlow<B, C>

      A ControlFlow in the Continue state.

      const flow = Continue();
      console.log(flow.isContinue()); // true

      const flowWithValue = Continue(42);
      console.log(flowWithValue.continueValue().unwrap()); // 42
    • Creates a Continue variant of ControlFlow with no value. This overload is used when the operation continues but doesn't carry a meaningful value.

      Type Parameters

      • B = never

        The type of the break value (allows type specification when chaining with Break).

      Returns ControlFlow<B, void>

      A ControlFlow<B, void> in the Continue state.

      const voidFlow = Continue();
      console.log(voidFlow.isContinue()); // true
      console.log(voidFlow.continueValue()); // Some(undefined)

      // With explicit type parameter
      const typedFlow = Continue<string>(); // ControlFlow<string, void>