Skip to content

scala.NotImplementedError when evaluating a failed Future #66

Closed
@yanns

Description

@yanns

The following worksheet:

import scala.async.Async.{async, await}
import scala.concurrent.Future
import scala.concurrent.ExecutionContext.Implicits.global

val f = Future.failed(new Exception())
async {
  await(f)
}

delivers the following error

scala.NotImplementedError: an implementation is missing
    at scala.Predef$.$qmark$qmark$qmark(async.sc1820668219168430883.tmp:248)
    at #worksheet#.stateMachine$1$1.<init>(async.sc1820668219168430883.tmp:7)
    at #worksheet#.#worksheet#(async.sc1820668219168430883.tmp:6)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions