pipe f g & more: pipe the result of (f request) to g and so on until more is exhausted. Returns a function that will return a channel with the result of the data transformation.
pipe! f g & more: same as pipe but returns an exception if any function returns one.
chan?: is this a channel?
inject: takes a query, a map and a key and returns a new map with the result of that query assoc'ed to the map
<?: error handling for cljs async operations
note that pipe is like comp in that it describe a data transformation. There is a no concept of request/response as in ring middleware. Simply stated data comes from the left and exits through the right, whether sync or async.
functions that come to mind
pipe f g & more
: pipe the result of(f request)
tog
and so on untilmore
is exhausted. Returns a function that will return a channel with the result of the data transformation.pipe! f g & more
: same aspipe
but returns an exception if any function returns one.chan?
: is this a channel?inject
: takes a query, a map and a key and returns a new map with the result of that query assoc'ed to the map<?
: error handling for cljs async operationsnote that pipe is like
comp
in that it describe a data transformation. There is a no concept of request/response as in ring middleware. Simply stated data comes from the left and exits through the right, whether sync or async.