跳到主要内容
版本:Next

AsyncContext

Index

Methods

deleteValue

  • Return a new context which inherits from this context but does not contain a value for the given key.

getValue

  • getValue(key: symbol): unknown
  • Get a value from the context.

setValue

  • Create a new context which inherits from this context and has the given key set to the given value.