init(_:)
WithRandomNumberGenerator.swift:73init(_ generator: some RandomNumberGenerator & Sendable)
init(_ generator: some RandomNumberGenerator & Sendable)
s12Dependencies25WithRandomNumberGeneratorVyACxcSGRzs8SendableRzlufc
What are these?6AQIJ
import Dependencies
A dependency management library inspired by SwiftUI’s “environment.”
struct WithRandomNumberGenerator
A dependency that yields a random number generator to a closure.
protocol RandomNumberGenerator
A type that provides uniformly distributed random data.
protocol Sendable
func callAsFunction<R>(_ work: (inout any RandomNumberGenerator & Sendable) throws -> R) rethrows -> R where R : Sendable