beaker-kernel
    Preparing search index...

    Class BeakerCellFuture

    Hierarchy

    Index

    Constructors

    Accessors

    • get done(): Promise<REPLY>

      A promise that resolves when the future is done.

      Returns Promise<REPLY>

    • get isDisposed(): boolean

      Test whether the delegate has been disposed.

      Returns boolean

    • get msg(): REQUEST

      Get the original outgoing message.

      Returns REQUEST

    • get onIOPub(): (msg: IIOPubMessage) => void | PromiseLike<void>

      Get the iopub handler.

      Returns (msg: IIOPubMessage) => void | PromiseLike<void>

    • set onIOPub(cb: (msg: IIOPubMessage) => void | PromiseLike<void>): void

      Set the iopub handler.

      Parameters

      • cb: (msg: IIOPubMessage) => void | PromiseLike<void>

      Returns void

    • get onReply(): (msg: REPLY) => void | PromiseLike<void>

      Get the reply handler.

      Returns (msg: REPLY) => void | PromiseLike<void>

    • set onReply(cb: (msg: REPLY) => void | PromiseLike<void>): void

      Set the reply handler.

      Parameters

      • cb: (msg: REPLY) => void | PromiseLike<void>

      Returns void

    • get onStdin(): (msg: IStdinMessage) => void | PromiseLike<void>

      Get the stdin handler.

      Returns (msg: IStdinMessage) => void | PromiseLike<void>

    • set onStdin(cb: (msg: IStdinMessage) => void | PromiseLike<void>): void

      Set the stdin handler.

      Parameters

      • cb: (msg: IStdinMessage) => void | PromiseLike<void>

      Returns void

    Methods

    • Dispose and unregister the future.

      Returns void

    • Handle an incoming kernel message.

      Parameters

      • msg: IMessage

      Returns Promise<void>

    • Register hook for IOPub messages.

      Parameters

      • hook: (msg: IIOPubMessage) => boolean | PromiseLike<boolean>

        The callback invoked for an IOPub message.

        The IOPub hook system allows you to preempt the handlers for IOPub messages handled by the future.

        The most recently registered hook is run first. A hook can return a boolean or a promise to a boolean, in which case all kernel message processing pauses until the promise is fulfilled. If a hook return value resolves to false, any later hooks will not run and the function will return a promise resolving to false. If a hook throws an error, the error is logged to the console and the next hook is run. If a hook is registered during the hook processing, it will not run until the next message. If a hook is removed during the hook processing, it will be deactivated immediately.

      Returns void

    • Remove a hook for IOPub messages.

      Parameters

      • hook: (msg: IIOPubMessage) => boolean | PromiseLike<boolean>

        The hook to remove.

        If a hook is removed during the hook processing, it will be deactivated immediately.

      Returns void

    • Send an input_reply message.

      Parameters

      • content: ReplyContent<IInputReply>
      • parent_header: IHeader<"input_request">

      Returns void