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

Upgrade to fs2-1.0.0-M1 #50

Merged
merged 1 commit into from
Jun 4, 2018
Merged

Conversation

rossabaker
Copy link
Contributor

  • ExecutionContext is replaced by Timer
  • Effect is still necessary for unsafeRunAsyncs.
  • Concurrent is necessary for Deferred, which replaces Promise.
  • Effect + Concurrent = ConcurrentEffect

Maybe we can whittle this down some more, but this is a minimal update that passes all tests.

@codecov-io
Copy link

codecov-io commented Jun 4, 2018

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #50   +/-   ##
=======================================
  Coverage   93.58%   93.58%           
=======================================
  Files           4        4           
  Lines          78       78           
  Branches        2        2           
=======================================
  Hits           73       73           
  Misses          5        5
Impacted Files Coverage Δ
...in/scala/fs2/interop/reactivestreams/package.scala 100% <ø> (ø) ⬆️
...2/interop/reactivestreams/StreamSubscription.scala 100% <ø> (ø) ⬆️
...terop/reactivestreams/StreamUnicastPublisher.scala 87.5% <ø> (ø) ⬆️
...fs2/interop/reactivestreams/StreamSubscriber.scala 90% <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 01e5f02...391708f. Read the comment docs.

Copy link
Owner

@zainab-ali zainab-ali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍 I'll release this asap

@@ -3,7 +3,7 @@ import ReleaseTransformations._

lazy val buildSettings = Seq(
organization := "com.github.zainab-ali",
crossScalaVersions := List("2.12.4", "2.11.12"),
crossScalaVersions := List("2.12.6", "2.11.12"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

final class StreamSubscriber[F[_], A](val sub: StreamSubscriber.FSM[F, A])(implicit A: Effect[F],
ec: ExecutionContext)
final class StreamSubscriber[F[_], A](val sub: StreamSubscriber.FSM[F, A])(implicit F: ConcurrentEffect[F],
timer: Timer[F])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was a bit confused as to why ConcurrentEffect was here when we're not using any of its methods. I see now that sub requires a Concurrent instance which is supplied on creation, so I suppose the subscriber could explicitly require a ConcurrentEffect to indicate concurrency.

@@ -1 +1 @@
sbt.version=1.0.4
sbt.version=1.1.6
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@zainab-ali zainab-ali merged commit 97c1591 into zainab-ali:master Jun 4, 2018
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