Provides pattern matching support and constructors for Notifications.
Example:
import Notification._
Observable(1, 2, 3).materialize.subscribe(n => n match {
case OnNext(v) => println("Got value " + v)
case OnCompleted() => println("Completed")
case OnError(err) => println("Error: " + err.getMessage)
})
Provides pattern matching support and constructors for Notifications.
Example: