Instance Methodswift 6.0.3_Concurrency
hash(into:)
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func hash(into hasher: inout Hasher)
func hash(into hasher: inout Hasher)
import _Concurrency
@frozen struct Task<Success, Failure> where Success : Sendable, Failure : Error
A unit of asynchronous work.
@frozen struct Hasher
The universal hash function used by Set
and Dictionary
.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Sendable
var isCancelled: Bool { get }
A Boolean value that indicates whether the task should stop executing.
var result: Result<Success, Failure> { get async }
The result or error from a throwing task, after it completes.
var value: Success { get async throws }
The result from a throwing task, after it completes.
static func == (lhs: Task<Success, Failure>, rhs: Task<Success, Failure>) -> Bool
func cancel()
Indicates that the task should stop running.
func get() async throws -> Success
func getResult() async -> Result<Success, Failure>