O'Reilly logo

Swift Functional Programming - Second Edition by Dr. Fatih Nayebi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Events

An event represents the fact that something has happened. An event might represent the press of a button, data received from an API, the occurrence of an error, or the completion of an async operation. In short, a source generates the events and sends them over a signal to any number of observers.

Event is an enumeration type representing either a value or one of three events (failed, completed, and interrupted).

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required