Options
All
  • Public
  • Public/Protected
  • All
Menu

Parallel stream for a static, already resolved result.

This stream has no sub results as the end result is already known. It can also never fail.

Type parameters

  • TSub

  • TOut

Hierarchy

  • ResolvedParallelStream

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private promise

promise: Promise<TOut>

Methods

catch

  • catch<TResult>(onrejected: function): Promise<TResult | TOut>
  • catch(onrejected: function): Promise<TOut>

subscribe

  • subscribe(onNext: function, onError?: undefined | function, onComplete?: undefined | function): IParallelStream<TSub, TOut>
  • Parameters

    • onNext: function
        • (subResult: TSub, taskIndex: number, valuesPerWorker: number): void
        • Parameters

          • subResult: TSub
          • taskIndex: number
          • valuesPerWorker: number

          Returns void

    • Optional onError: undefined | function
    • Optional onComplete: undefined | function

    Returns IParallelStream<TSub, TOut>

then

  • then<TResult1, TResult2>(onfulfilled: function, onrejected: function): Promise<TResult2 | TResult1>
  • then<TResult>(onfulfilled: function, onrejected: function): Promise<TResult>
  • then<TResult>(onfulfilled: function): Promise<TResult>
  • then<TResult>(onfulfilled?: undefined | function, onrejected?: undefined | function): Promise<TResult>
  • then<TResult>(onfulfilled?: undefined | function, onrejected?: undefined | function): Promise<TResult>
  • Type parameters

    • TResult1

    • TResult2

    Parameters

    • onfulfilled: function
        • (value: TOut): TResult1 | PromiseLike<TResult1>
        • Parameters

          • value: TOut

          Returns TResult1 | PromiseLike<TResult1>

    • onrejected: function
        • (reason: any): TResult2 | PromiseLike<TResult2>
        • Parameters

          • reason: any

          Returns TResult2 | PromiseLike<TResult2>

    Returns Promise<TResult2 | TResult1>

  • Type parameters

    • TResult

    Parameters

    • onfulfilled: function
        • (value: TOut): TResult | PromiseLike<TResult>
        • Parameters

          • value: TOut

          Returns TResult | PromiseLike<TResult>

    • onrejected: function
        • (reason: any): TResult | PromiseLike<TResult>
        • Parameters

          • reason: any

          Returns TResult | PromiseLike<TResult>

    Returns Promise<TResult>

  • Type parameters

    • TResult

    Parameters

    • onfulfilled: function
        • (value: TOut): TResult | PromiseLike<TResult>
        • Parameters

          • value: TOut

          Returns TResult | PromiseLike<TResult>

    Returns Promise<TResult>

  • Type parameters

    • TResult

    Parameters

    • Optional onfulfilled: undefined | function
    • Optional onrejected: undefined | function

    Returns Promise<TResult>

  • Type parameters

    • TResult

    Parameters

    • Optional onfulfilled: undefined | function
    • Optional onrejected: undefined | function

    Returns Promise<TResult>

Generated using TypeDoc