Skip to content

How to save result of single computation without parallelReduce? #1184

Answered by DanBurton
MetaB0y asked this question in Q&A
Discussion options

You must be logged in to vote

I believe you are looking for call, which is the basic way to indicate that a specific API must be called to advance the program.

https://docs.reach.sh/rsh/step/#p_78

const [ [arg], callback ] =
  call(Api.myApi)
    .check((arg) => {
      check(...);
    });
callback(null);
const result = computeSomthing(arg);
commit();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DanBurton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants