-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add state-flow.state/runner to access the runner within flows #119
Conversation
Which is the use case of this? When I could want to access the runner from a flow? |
It's for helpers that need to run a flow within a flow in order to wrap it in some other function (e.g. |
src/state_flow/state.clj
Outdated
@@ -113,3 +113,9 @@ | |||
(if (state? value) | |||
value | |||
(return value))) | |||
|
|||
(defn runner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now this is part of core, no? runner is defined in core and meta is also something related to core.
test/state_flow/state_test.clj
Outdated
@@ -2,6 +2,7 @@ | |||
(:require [cats.core :as m] | |||
[cats.monad.exception :as e] | |||
[clojure.test :as t :refer [deftest is testing]] | |||
[state-flow.core :as state-flow] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't declare core on state_test.clj namespace
No description provided.