Packages

o

fs2.internal.jsdeps.node

nodeWorkerThreadsMod

object nodeWorkerThreadsMod

Source
nodeWorkerThreadsMod.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. nodeWorkerThreadsMod
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class BroadcastChannel extends workerThreadsMod.BroadcastChannel

    See https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel

    See https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel

    Annotations
    @JSType() @JSImport("node:worker_threads", "BroadcastChannel") @native()
  2. class MessageChannel extends workerThreadsMod.MessageChannel
    Annotations
    @JSType() @JSImport("node:worker_threads", "MessageChannel") @native()
  3. class MessagePort extends Object with StObject
    Annotations
    @JSType() @JSImport("node:worker_threads", "MessagePort") @native()
  4. class Worker extends Object with StObject
    Annotations
    @JSType() @JSImport("node:worker_threads", "Worker") @native()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val SHARE_ENV: Symbol
    Annotations
    @JSImport("node:worker_threads", "SHARE_ENV") @native()
  5. val ^: Any
    Annotations
    @JSImport("node:worker_threads", JSImport.Namespace) @native()
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. def getEnvironmentData(key: Serializable): Serializable

    key

    Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.

    Annotations
    @inline()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val isMainThread: Boolean
    Annotations
    @JSImport("node:worker_threads", "isMainThread") @native()
  15. def markAsUntransferable(object: Object): Unit

    Mark an object as not transferable.

    Mark an object as not transferable. If object occurs in the transfer list of a port.postMessage() call, it will be ignored.

    In particular, this makes sense for objects that can be cloned, rather than transferred, and which are used by other objects on the sending side. For example, Node.js marks the ArrayBuffers it uses for its Buffer pool with this.

    This operation cannot be undone.

    Annotations
    @inline()
  16. def moveMessagePortToContext(port: workerThreadsMod.MessagePort, context: Context): workerThreadsMod.MessagePort

    Transfer a MessagePort to a different vm Context.

    Transfer a MessagePort to a different vm Context. The original port object will be rendered unusable, and the returned MessagePort instance will take its place.

    The returned MessagePort will be an object in the target context, and will inherit from its global Object class. Objects passed to the port.onmessage() listener will also be created in the target context and inherit from its global Object class.

    However, the created MessagePort will no longer inherit from EventEmitter, and only port.onmessage() can be used to receive events using it.

    Annotations
    @inline()
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. val parentPort: |[Null, workerThreadsMod.MessagePort]
    Annotations
    @JSImport("node:worker_threads", "parentPort") @native()
  21. def receiveMessageOnPort(port: workerThreadsMod.MessagePort): UndefOr[Message]

    Receive a single message from a given MessagePort.

    Receive a single message from a given MessagePort. If no message is available, undefined is returned, otherwise an object with a single message property that contains the message payload, corresponding to the oldest message in the MessagePort’s queue.

    Annotations
    @inline()
  22. val resourceLimits: ResourceLimits_
    Annotations
    @JSImport("node:worker_threads", "resourceLimits") @native()
  23. def setEnvironmentData(key: Serializable, value: Serializable): Unit

    key

    Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.

    value

    Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new Worker instances. If value is passed as undefined, any previously set value for the key will be deleted.

    Annotations
    @inline()
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. val threadId: Double
    Annotations
    @JSImport("node:worker_threads", "threadId") @native()
  26. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. val workerData: Any
    Annotations
    @JSImport("node:worker_threads", "workerData") @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped