hiposfer / hive

Your go-to routing app for public transport
GNU Lesser General Public License v3.0
10 stars 0 forks source link

simplify tool/channel to be tool/async #101

Closed carocad closed 6 years ago

carocad commented 6 years ago

whenever we try to link a promise with transact it is necessary to convert it into a core.async channel.

Currently we do this through (tool/channel (my-promise-creation (comp (map do-something) (filter some-data?)).

This is obviously quite verbose. Since we will only have a value and we must provide a transducer for the promise to make sense we can simplify this to

(tool/async (my-promise-creation) (map do-something) (filter some-data?) )

which is a bit shorter and arguably simpler to read