Contents

setSpecific(key:value:)

Sets the key/value data for the specified dispatch queue.

Declaration

@preconcurrency func setSpecific<T>(key: DispatchSpecificKey<T>, value: T?) where T : Sendable

Parameters

  • key:

    The key that you use to identify the data.

  • value:

    The data you want to associate with the queue.

See Also

Getting and Setting Contextual Data