Search Results for

    / fm / liveswitch / ManagedConcurrentStack

    Class: ManagedConcurrentStack<TValue>

    fm.liveswitch.ManagedConcurrentStack

    A ConcurrentStack that maps to the appropriate platform version.

    Type parameters

    Name
    TValue

    Table of contents

    Constructors

    • constructor

    Methods

    • clear
    • getCount
    • getIsEmpty
    • getTypeString
    • push
    • tryPeek
    • tryPop

    Constructors

    constructor

    + new ManagedConcurrentStack<TValue>(): ManagedConcurrentStack<TValue>

    Creates a new instance of a ConcurrentStack.

    Type parameters:

    Name
    TValue

    Returns: ManagedConcurrentStack<TValue>

    Defined in: Generated/TypeScript/fm.liveswitch/ManagedConcurrentStack.ts:13

    Methods

    clear

    ▸ clear(): void

    Clears the stack of all items.

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ManagedConcurrentStack.ts:37


    getCount

    ▸ getCount(): number

    Gets the amount of items in the stack.

    Returns: number

    Defined in: Generated/TypeScript/fm.liveswitch/ManagedConcurrentStack.ts:49


    getIsEmpty

    ▸ getIsEmpty(): boolean

    Gets true if the stack is empty.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ManagedConcurrentStack.ts:61


    getTypeString

    ▸ getTypeString(): string

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ManagedConcurrentStack.ts:9


    push

    ▸ push(item: TValue): void

    Pushes a new item on top of the stack.

    Parameters:

    Name Type Description
    item TValue The item to push.

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ManagedConcurrentStack.ts:74


    tryPeek

    ▸ tryPeek(result: Holder<TValue>): boolean

    Tries to peek at the top value in stack.

    Parameters:

    Name Type Description
    result Holder<TValue> The value from the stack if possible, null otherwise.

    Returns: boolean

    True if peek succeeded, false if not.

    Defined in: Generated/TypeScript/fm.liveswitch/ManagedConcurrentStack.ts:88


    tryPop

    ▸ tryPop(result: Holder<TValue>): boolean

    Tries to pop the top value off of the stack.

    Parameters:

    Name Type Description
    result Holder<TValue> The value from the top of the stack if possible, null otherwise.

    Returns: boolean

    True if pop suceeded, false if not.

    Defined in: Generated/TypeScript/fm.liveswitch/ManagedConcurrentStack.ts:103

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.14.6