# Module: vertx-js/context

### 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:
  - vertx-js/context.js, line 324

##### 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:
  - vertx-js/context.js, line 338

##### 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:
  - vertx-js/context.js, line 307

##### Returns:

true if current thread is a worker thread, false otherwise

Type
  boolean