How to use the @lumino/collections.LinkedList function in @lumino/collections

To help you get started, we’ve selected a few @lumino/collections examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyterlab / lumino / packages / messaging / src / index.ts View on Github external
export
  function setExceptionHandler(handler: ExceptionHandler): ExceptionHandler {
    let old = exceptionHandler;
    exceptionHandler = handler;
    return old;
  }

  /**
   * A type alias for a posted message pair.
   */
  type PostedMessage = { handler: IMessageHandler | null, msg: Message | null };

  /**
   * The queue of posted message pairs.
   */
  const messageQueue = new LinkedList();

  /**
   * A mapping of handler to array of installed message hooks.
   */
  const messageHooks = new WeakMap>();

  /**
   * A set of message hook arrays which are pending cleanup.
   */
  const dirtySet = new Set>();

  /**
   * The message loop exception handler.
   */
  let exceptionHandler: ExceptionHandler = (err: Error) => {
    console.error(err);

@lumino/collections

Lumino Generic Collections

BSD-3-Clause
Latest version published 29 days ago

Package Health Score

86 / 100
Full package analysis

Similar packages