Contents

descendant(matchingIdentifierPath:completion:)

Finds the context with the given identifier path relative to this context.

Declaration

func descendant(matchingIdentifierPath identifierPath: [String], completion: @escaping  @Sendable (CLSContext?, (any Error)?) -> Void)
func descendant(matchingIdentifierPath identifierPath: [String]) async throws -> CLSContext

Parameters

  • identifierPath:

    The identifier path of the context to find, relative to the current context.

  • completion:

    A closure the method calls with the found context, or nil if none could be found, and an error indicating the reason for failure, if any.

Mentioned in

Discussion

See Also

Managing context hierarchy