Skip to content

MetadataRequest

Azoy edited this page May 6, 2021 · 2 revisions

MetadataRequest

A metadata request is a "request" to a runtime function that returns some metadata in some state, either blocking until the runtime can produce said metadata, or non-blocking returning an abstract metadata record.

public struct MetadataRequest 

Initializers

init(state:isNonBlocking:)

Initializes a metadata request with a given state and blocking info.

public init(state: MetadataState, isNonBlocking: Bool = false) 

Parameters

  • state: The metadata state that is being requested.
  • isNonBlocking: Whether this request doesn't block or not.

Properties

bits

A request as represented in bits.

public var bits: Int

complete

The go to metadata request kind which asks for complete metadata blocking until it returns.

public static var complete: MetadataRequest 

state

The metadata state that is being requested with this request.

public var state: MetadataState 

isNonBlocking

Whether this request doesn't block or not.

public var isNonBlocking: Bool 
Types
Protocols
Global Variables
Global Functions
Clone this wiki locally