This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | sealed trait Task[A] { | |
| import Task._ | |
| final def flatMap[B](f: A => Task[B]): Task[B] = Suspend(this, f) | |
| final def map[B](f: A => B): Task[B] = this match { | |
| case Suspend(inner, suspension) => | |
| Suspend(inner, suspension andThen { _ map f }) | |
| case Async(body) => | 
OlderNewer