Skip to content

Instantly share code, notes, and snippets.

@yanns
Last active November 2, 2018 16:05
Show Gist options
  • Save yanns/25665ac4bea407e9333d8237acd4953d to your computer and use it in GitHub Desktop.
Save yanns/25665ac4bea407e9333d8237acd4953d to your computer and use it in GitHub Desktop.
Errors when updating monix from `3.0.0-RC1` to `3.0.0-RC2-840c090`
when updating monix from `3.0.0-RC1` to `3.0.0-RC2-840c090`, there were warnings but also some errors like:
code:
```
trait ContextAware {
def runInContext[A](context: Context)(task: Task[A])(implicit scheduler: Scheduler): CancelableFuture[A] =
(Context.write(context) >> task).executeWithOptions(_.enableLocalContextPropagation).runAsync
}
```
(used to execute a `Task` with a certain `Context` when a `Future` is expected)
```
[error] .../Context.scala:48:90: missing argument list for method runAsync in class Task
[error] Unapplied methods are only converted to functions when a function type is expected.
[error] You can make this conversion explicit by writing `runAsync _` or `runAsync(_)(_)` instead of `runAsync`.
[error] (Context.write(context) >> task).executeWithOptions(_.enableLocalContextPropagation).runAsync
[error]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment