Fork me on GitHub
#missionary
<
2022-04-23
>
Dustin Getz15:04:21

I may make a RCF tutorial video for the Task portion of https://github.com/leonoel/missionary/wiki/Basic-Walkthrough:-Tasks-&amp;-Flows . Do we think this is the best current hello world tutorial for missionary?

Dustin Getz15:04:50

It may need to be modified to work in CLJS as well

nivekuil22:04:37

when working with missionary, do you ever write APIs that return thunks (which do some i/o) anymore or are they always returned as missionary tasks

leonoel19:04:20

> thunks (which do some i/o) you mean blocking functions ?

nivekuil20:04:51

basically. Do you color them when returned or when used

nivekuil20:04:46

I think the idea of effects is that you just write the same general code whether it's blocking or not and handle the implementation elsewhere? I might have to break a habit of thinking of missionary as promises

leonoel09:04:03

If you're used to promises, your api should look pretty much the same. Instead of side-effecting functions returning promises, define pure functions returning tasks or flows. Let the user decide when to actually perform the effects.

nivekuil22:04:48

not sure if it's cleaner to just always make returned stuff same "color" as you might with promises, even if you don't plan on using them asynchronously