Feb 23, 2017 · 1 min read
Hi, really great article!
Talking about standard callbacks… can I change the Task class as follows?
class Task<Input, Output> {
func perform(_ element: Input,
success: (Input, Output) -> Void,
failure: (Input, Error) -> Void) {
fatalError(“This must be implemented in subclasses”)
}
}