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 pap and remove concurrify #404

Merged
merged 4 commits into from
Jan 6, 2020
Merged

Add pap and remove concurrify #404

merged 4 commits into from
Jan 6, 2020

Conversation

Avaq
Copy link
Member

@Avaq Avaq commented Dec 12, 2019

These are three unrelated commits, but because they all touch the same code, I am submitting them in a single PR to avoid having to resolve conflicts afterwards. Every commit contains its own motivation in the commit body.

@Avaq Avaq requested a review from dicearr December 12, 2019 13:54
@Avaq Avaq self-assigned this Dec 12, 2019
Historically, parallelAp has been available only to users through usage
of the ConcurrentFuture type. However, using it for day-to-day function
application is quite cumbersome in comparison to using 'ap' directly.

Providing a parallel implementation of ap allows users to use the more
convenient API whenever they know they're working with a Future, leaving
the ConcurrentFuture type for special usecases only.
This dependency was removed quite some time ago, but the reference to it
in the rollup configuration was never removed.
There are various reasons for this change:

1. Concurrify has been conflated with features needed only by Fluture.
2. The approach taken by Concurrify for determining the
   type identity is no longer compatible with the latest
   version of sanctuary-type-identifiers.
3. Maintaining concurrify is more trouble than it's worth.
@codecov
Copy link

codecov bot commented Dec 12, 2019

Codecov Report

Merging #404 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #404   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          45     45           
  Lines        1896   1957   +61     
=====================================
+ Hits         1896   1957   +61
Impacted Files Coverage Δ
src/par.js 100% <100%> (ø) ⬆️
src/pap.js 100% <100%> (ø)
index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9e8084e...6aaf82d. Read the comment docs.

@Avaq Avaq merged commit 8523a76 into master Jan 6, 2020
@Avaq Avaq deleted the avaq/parallel branch January 6, 2020 09:50
Avaq added a commit that referenced this pull request Jan 7, 2020
New Features

- #404 (323bdab) Add a 'pap' function: 'ap' in parallel

Improvements

- #404 (7b6d9fd) Improvements to debuggability of ConcurrentFuture
  related functions, and removal of an external dependency.
- #410 (b465433) Mistake in TypeScript annotations fixed.
- #404 (6aaf82d) Mistake in TypeScript annotations fixed.
@Avaq Avaq mentioned this pull request Jan 23, 2020
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

2 participants