-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
90 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
let runQueue = null; | ||
|
||
exports.getRunQueue = function() { | ||
return runQueue; | ||
} | ||
|
||
exports.setRunQueue = function(initialRunQueue) { | ||
return function() { runQueue = initialRunQueue } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module Fulcrum.RunState where | ||
|
||
import Prelude | ||
import Effect (Effect) | ||
import Effect.AVar (AVar) | ||
import Effect.AVar (empty) as AVar | ||
import Effect.Aff (Aff) | ||
|
||
type ApplyExperimentEffect | ||
= Aff Unit | ||
|
||
foreign import getRunQueue :: Effect (AVar ApplyExperimentEffect) | ||
|
||
foreign import setRunQueue :: AVar ApplyExperimentEffect -> Effect Unit | ||
|
||
initRunQueue :: Effect Unit | ||
initRunQueue = AVar.empty >>= setRunQueue |