Instance Methodpointfreeco.swift-dependencies 1.6.2Dependencies
callAsFunction
Date.swift:76func callAsFunction() -> Date
func callAsFunction() -> Date
s12Dependencies13DateGeneratorV14callAsFunction10Foundation0B0VyF
What are these?8E7II
import Dependencies
A dependency management library inspired by SwiftUI’s “environment.”
struct DateGenerator
A dependency that generates a date.
init(_ generate: @escaping () -> Date)
Initializes a date generator that generates a date from a closure.
static func constant(_ now: Date) -> DateGenerator
A generator that returns a constant date.
var now: Date { get set }
The current date.