aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/scala/async/run/futures/FutureSpec.scala
Commit message (Collapse)AuthorAgeFilesLines
* fix procedure syntaxxuwei-k2018-05-091-24/+24
|
* fixes for 2.13 compatibilitySeth Tisue2018-03-141-3/+3
| | | | as discovered by the Scala 2.13 community build
* Remove use of scala.concurrent.forkjoinNthPortal2018-03-141-1/+1
| | | | | Remove use of scala.concurrent.forkjoin. Remove support for JDK 6.
* Remove uses of deprecated Future APIsNthPortal2018-02-271-23/+32
|
* copyright 2018 LightbendSeth Tisue2018-02-061-1/+1
|
* Make `f(await(completedFuture))` execute `f` synchronouslyJason Zaugg2014-12-161-1/+0
| | | | | | A worthy optimization, suggested by @danarmak. Closes #73
* Avoid unbounded stack consumption for synchronous control flowJason Zaugg2014-12-151-0/+7
| | | | | | | | | | | | | | | | | | Previously, as sequence of state transitions that did not pass through an asynchrous boundary incurred stack frames. The trivial loop in the enclosed test case would then overflow the stack. This commit merges the `resume` and `apply(tr: Try[Any])` methods into a `apply`. It changes the body of this method to be an infinite loop with returns at the terminal points in the state machine (or at a terminal failure.) To allow merging of these previously separate matches, states that contain an await are now allocated two state ids: one for the setup code that calls `onComplete`, and one for the code in the continuation that records the result and advances the state machine. Fixes #93
* Update copyright years.Jason Zaugg2014-01-141-1/+1
| | | | 2013 must have been unlucky.
* Remove @RunWith annotations from test cases.Jason Zaugg2013-08-151-3/+0
| | | | | These are are at odds with the junit-interface SBT test framework under SBT 0.13.+, and appear to be superfluous.
* Fix #42 - Futures created by async are not properly completed with exceptionsphaller2012-11-261-15/+19
| | | | | | | | | | | | This augments the on-complete handler for an async state with await as follows: if (tr.isFailure) result$async.complete(tr.asInstanceOf[Try[T]]) else { <resultName> = tr.get.asInstanceOf[<resultType>] <nextState> <mkResumeApply> }
* Replace uses of Future.map/Future.flatMap with async+awaitphaller2012-11-261-24/+33
|
* Add ported futures testsphaller2012-11-261-0/+527
These tests do not use async/await, yet. Refs #23