Documentation

Std.Sync.CancellationToken

This module contains the implementation of Std.CancellationToken. Std.CancellationToken provides a cancellation primitive for signaling cancellation between tasks or threads. It supports both synchronous and asynchronous waiting, and is useful for cases where you want to notify one or more waiters that a cancellation has occurred.

Reasons for cancellation.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[instance_reducible]
      Equations
      • One or more equations did not get rendered due to their size.

      A cancellation token is a synchronization primitive that allows multiple consumers to wait until cancellation is requested.

      Instances For

        Creates a new cancellation token.

        Equations
        Instances For

          Cancels the token with the given reason, notifying all currently waiting consumers. Once cancelled, the token remains cancelled.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Waits for cancellation. Returns a task that completes when cancelled.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Creates a selector that waits for cancellation.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For