8000 Deprecate ZIO#forkOn by adamgfraser · Pull Request #5510 · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Deprecate ZIO#forkOn #5510

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

Merged
merged 1 commit into from
Sep 2, 2021
Merged

Deprecate ZIO#forkOn #5510

merged 1 commit into from
Sep 2, 2021

Conversation

adamgfraser
Copy link
Contributor

While we have been adding new operators over time this seems like one we can maybe cut out. It can already be implemented extremely compositionally as zio.onExecutionContext(ec).fork which still provides a fluent API. There are a variety of ways one might want to customize a forked effect and I don't think this one is sufficiently common to warrant its own variant. It also seems odd that this takes an ExecutionContext and not an Executor when Executor is supposed to be our first class representation of a thread pool.

@kitlangton
Copy link
Member

Sounds great. I don't think this is common enough to necessitate a special pre-composed operator :)

@jdegoes
Copy link
Member
jdegoes commented Sep 2, 2021

I agree with this. There's some code that can be removed in FiberContext too.

@jdegoes jdegoes merged commit e02403c into zio:series/2.x Sep 2, 2021
@adamgfraser adamgfraser deleted the forkon branch September 3, 2021 15:18
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.

3 participants
0