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
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