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

Pipe.scan is not single-threaded... #310

Open
haf opened this issue Apr 19, 2018 · 4 comments
Open

Pipe.scan is not single-threaded... #310

haf opened this issue Apr 19, 2018 · 4 comments
Labels
Milestone

Comments

@haf
Copy link
Member

haf commented Apr 19, 2018

...as such it cannot reliably be used for counting/buffering, etc.

Try outputting two events and using the scan implementation I posted in an earlier issue; the initial state is created twice. Experimentally, 8 different state spaces are created, which seems to correspond to the # of Hopac threads.

@haf haf added the bug label Apr 19, 2018
@haf
Copy link
Member Author

haf commented Apr 19, 2018

/cc @lust4life

@haf haf mentioned this issue Apr 20, 2018
@haf haf mentioned this issue May 8, 2018
2 tasks
@haf haf added this to the v5.0 milestone Jun 19, 2018
@haf
Copy link
Member Author

haf commented Jul 23, 2018

Ref #361 — this needs to be fixed to have serialisability across loggers' shipped Message values.

@lust4life
Copy link
Contributor

pipe state will be created when the the pipe had been build, which will only occur in registry init time. Perhaps this is due to the current implementation about the Pipe.compose . which chains all pipes not dispatch them. #378

@haf
Copy link
Member Author

haf commented Dec 14, 2018

Yes, it's probably because each pipe segment is run on Hopac and Hopac chooses where to run it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants