Future.successful(t) ?
-
-
-
Oh right, yeah. Bit of false advertising in my tweet, there...
- Show replies
New conversation -
-
-
Cool use of SAM types literals. I predict it'll be labelled too magical and banned as a bad practice.
-
Yeah, I really want to get more people using SAMs. They remove a huge amount of boilerplate from typeclasses instances.
- Show replies
New conversation -
-
-
I read that as a lesser joke before I got the actual intended joke. Haha! ;)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
it's almost like Future is a monad
-
It's almost as if you could generalise my example!
End of conversation
New conversation -
-
-
No, that's the archaic British -ize!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Your requirement is wrong. You shouldn't want a Future[T], you should want just a T. Kleisli FTW
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.