Type alias AbortableCallback<T>

AbortableCallback<T>: ((signal) => Awaitable<T>)

The callback that receives a signal that is aborted when execution must be stopped, and returns the execution value.

Type Parameters

  • T

    The returned value.

Type declaration