# Module: vertx-js/context

## vertx-js/context

Source:
  - context.js, line 3

### Classes

Context

### Methods

#### <static> Context.isOnEventLoopThread() → {boolean}

  Is the current thread an event thread?

  NOTE! This is not always the same as calling Context#isEventLoopContext. If you are running blocking code from an event loop context, then this will return false but Context#isEventLoopContext will return true.

  Source:
    - context.js, line 289

  ##### Returns:

  true if current thread is a worker thread, false otherwise
  Type
    boolean

#### <static> Context.isOnVertxThread() → {boolean}

  Is the current thread a Vert.x thread? That's either a worker thread or an event loop thread
  Source:
    - context.js, line 303

  ##### Returns:

  true if current thread is a Vert.x thread, false otherwise
  Type
    boolean

#### <static> Context.isOnWorkerThread() → {boolean}

  Is the current thread a worker thread?

  NOTE! This is not always the same as calling Context#isWorkerContext. If you are running blocking code from an event loop context, then this will return true but Context#isWorkerContext will return false.

  Source:
    - context.js, line 272

  ##### Returns:

  true if current thread is a worker thread, false otherwise
  Type
    boolean