Skip to content

Instantly share code, notes, and snippets.

@alfianlosari
Created May 31, 2021 07:30
Show Gist options
  • Save alfianlosari/03b534f8963c9193f9e554d2554c29db to your computer and use it in GitHub Desktop.
Save alfianlosari/03b534f8963c9193f9e554d2554c29db to your computer and use it in GitHub Desktop.
Public Task Interface
extension Task where Failure == Never {
public init(priority: TaskPriority? = nil, operation: @escaping @Sendable () async -> Success)
public init(priority: TaskPriority? = nil, operation: @escaping @Sendable () async throws -> Success)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment