Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1017970 // runPlanWithCheck

JavaX fragment (include)

static <A extends Runnable> void runPlanWithCheck(PlanInMotion<A> plan, F0<Bool> shouldKeepRunning) {
  while (isTrue(callF(shouldKeepRunning))) {
    A step = plan.master_next();
    if (step == null) ret;
    callF(step);
  }
}

Author comment

Began life as a copy of #1017969

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017970
Snippet name: runPlanWithCheck
Eternal ID of this version: #1017970/3
Text MD5: 4b32ea4248db00c0f09f6c13275155ba
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-23 16:59:47
Source code size: 237 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 276 / 311
Version history: 2 change(s)
Referenced in: [show references]