scala - What exactly ~> operator means in Spray.io? -
reading through code, can't understand meaning of operator. appreciated!
it custom operator in spray similar function1.andthen
used compose functions bit more convenient when used futures. supports chaining these 3 types of functions:
a => b
,b => c
a => c
(sameandthen
)a => future[b]
,b => c
a => future[c]
(similarfuture.map
)a => future[b]
,b => future[c]
a => future[c]
(similarfuture.flatmap
)
Comments
Post a Comment