Documentation Language: Swift

Method

createResource(uri:)

Creates a new resource with the specified URI.

@discardableResult func createResource(uri: String) async -> Resource

Parameters

uri

The URI for the new resource.

Return Value

The created or existing resource.

Discussion

If a resource with the same URI already exists, returns the existing resource. The new resource is automatically added to this resource set.