Skip to content
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

Merged
merged 4 commits into from
May 14, 2020

Conversation

dchelimsky
Copy link
Contributor

No description provided.

@dchelimsky dchelimsky requested review from a team, sovelten and philomates May 14, 2020 14:15
@gabrielgiussi
Copy link
Contributor

gabrielgiussi commented May 14, 2020

Which is the use case of this? When I could want to access the runner from a flow?

@dchelimsky
Copy link
Contributor Author

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. with-redefs.

@@ -113,3 +113,9 @@
(if (state? value)
value
(return value)))

(defn runner
Copy link
Collaborator

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.

@@ -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]
Copy link
Collaborator

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

@dchelimsky dchelimsky merged commit 3d20a67 into master May 14, 2020
@dchelimsky dchelimsky deleted the dc/access-runner-within-flow branch May 14, 2020 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants