Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KernelConnector

A kernel connector for completion handlers.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create a new kernel connector for completion requests.

    Parameters

    • options: IOptions

      The instantiation options for the kernel connector.

    Returns KernelConnector

Properties

Private _session

_session: any

Methods

fetch

  • Fetch completion requests.

    Parameters

    • request: IRequest

      The completion request text and details.

    Returns Promise<IReply>

list

  • list(query?: W): Promise<{ ids: V[]; values: T[] }>
  • Retrieve the list of items available from the data connector.

    Parameters

    • Optional query: W

      The optional query filter to apply to the connector request.

    Returns Promise<{ ids: V[]; values: T[] }>

    A promise that always rejects with an error.

    Notes

    Subclasses should reimplement if they support a back-end that can list.

remove

  • remove(id: V): Promise<any>
  • Remove a value using the data connector.

    Parameters

    • id: V

      The identifier for the data being removed.

    Returns Promise<any>

    A promise that always rejects with an error.

    Notes

    Subclasses should reimplement if they support a back-end that can remove.

save

  • save(id: V, value: U): Promise<any>
  • Save a value using the data connector.

    Parameters

    • id: V

      The identifier for the data being saved.

    • value: U

      The data being saved.

    Returns Promise<any>

    A promise that always rejects with an error.

    Notes

    Subclasses should reimplement if they support a back-end that can save.

Generated using TypeDoc