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

Reexport all operators in aioreactive.operators #15

Merged
merged 2 commits into from
Jan 30, 2019

Conversation

vodik
Copy link
Contributor

@vodik vodik commented Dec 31, 2017

Just noticed that some of the operations aren't reexported from aioreactive.operators that are exposed in other places (like Operations).

I'd like to see this fixed as I've been playing with Hy, which had threading macros making this the preferable way of building a stream. For example, the autocomplete example snippet becomes:

(import [aioreactive [operators :as op]]
        [aioreactive.core [AsyncStream])

(setv stream (AsyncStream)
      xs (->> stream
              (op.map (fn [x] (.rstrip (get x "term"))))
              (op.filter (fn [term] (> (len term) 2)))
              (op.debounce 0.5)
              (op.distinct-until-changed)
              (op.flat-map search-wikipedia))

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 81.477% when pulling e48aa80 on vodik:master into 5e8323a on dbrattli:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 81.477% when pulling fcb71f2 on vodik:master into 5e8323a on dbrattli:master.

@dbrattli dbrattli merged commit 3c40b2d into dbrattli:master Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants