summaryrefslogtreecommitdiff
path: root/test/files/jvm/scala-concurrent-tck.scala
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '7d74884' into merge-2.10.x-to-masterJason Zaugg2013-12-061-2/+2
|\ | | | | | | | | Conflicts: test/files/jvm/scala-concurrent-tck.scala
| * SI-6913 Fixing semantics of Future fallbackTo to be according to docsHeather Miller2013-12-051-2/+2
| | | | | | | | Origin: viktorklang@1bbe854
* | SI-7958 Deprecate methods `future` and `promise` in the `scala.concurrent` ↵Philipp Haller2013-11-121-58/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | package object - The corresponding `apply` methods in the `Future` and `Promise` objects should be used instead. - Adjusted tests to use non-deprecated versions - Fixed doc comments not to use deprecated methods - Added comment about planned removal in 2.13.0
* | Cull extraneous whitespace.Paul Phillips2013-09-181-31/+31
|/ | | | | | | | | | | | | | | | | | | | | One last flurry with the broom before I leave you slobs to code in your own filth. Eliminated all the trailing whitespace I could manage, with special prejudice reserved for the test cases which depended on the preservation of trailing whitespace. Was reminded I cannot figure out how to eliminate the trailing space on the "scala> " prompt in repl transcripts. At least reduced the number of such empty prompts by trimming transcript code on the way in. Routed ConsoleReporter's "printMessage" through a trailing whitespace stripping method which might help futureproof against the future of whitespace diseases. Deleted the up-to-40 lines of trailing whitespace found in various library files. It seems like only yesterday we performed whitespace surgery on the whole repo. Clearly it doesn't stick very well. I suggest it would work better to enforce a few requirements on the way in.
* Refactoring to the scala-concurrent-tck.scalaViktor Klang2013-06-191-409/+153
| | | | | | - there were numerous logical issues with the former implementation - failed assertions may not fail the build - there was a lot of ceremony and noise
* Fix SI-6932 by enabling linearization of callback execution for the ↵Viktor Klang2013-01-211-0/+7
| | | | internal execution context of Future
* move Duration (incl. DSL) into scala.concurrent.duration packageRoland2012-09-191-1/+1
| | | | | | | | | so that the full package can be imported naturally: import scala.concurrent.duration._ will give you all the types (Duration, FiniteDuration, Deadline) and the DSL for constructing these.
* improve docs and Promise implRoland2012-09-111-8/+1
| | | | | | | - scaladoc the exceptions thrown by Await.* and Awaitable.* - move intercept[Exception] into partest’s TestUtil object - improve Promise.tryAwait implementation following Viktor’s comments and make use of Deadline to avoid calling System.nanoTime too often
* fix usage of Duration in Promise implRoland2012-09-101-0/+34
| | | | | | | | | - correctly treat MinusInf and Undefined - don't toMillis in the timeout message (could be MinusInf) - also notice that Inf did not actually wait unbounded - and further notice that tryAwait swallows InterruptedException instead of bailing out early => changed to do so and added throws annotation - also removed some unused imports of Duration
* Fix test for ExecutionContext.preparephaller2012-08-081-1/+1
|
* SI-6185 - add "prepare" hook to ExecutionContextphaller2012-08-051-0/+61
| | | | | Enables important abstractions to be built on top of futures, such as Twitter's "Local" for handling data local to a callback chain.
* Basing Futures on Try instead of EitherHeather Miller2012-08-041-85/+6
|
* SIP-14 - Fix critical Java compatibility issue in scala.concurrent.Awaitphaller2012-07-201-1/+10
| | | | Patch contributed by @viktorklang
* Critical bugfixes/leak fixes/API corrections + ScalaDoc for SIP-14Viktor Klang2012-07-191-10/+10
|
* Collection of updates to SIP-14 (scala.concurrent)Havoc Pennington2012-07-091-47/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Developed by Viktor Klang and Havoc Pennington - add Promise.isCompleted - add Future.successful and Future.failed - add ExecutionContextExecutor and ExecutionContextExecutorService for Java interop - remove defaultExecutionContext as default parameter value from promise and future - add ExecutionContext.Implicits.global which must be explicitly imported, rather than the previous always-available value for the implicit EC - remove currentExecutionContext, since it could create bugs by being out of sync with the implicit ExecutionContext - remove Future task batching (_taskStack) and Future.releaseStack This optimization should instead be implemented either in a specific thread pool or in a specific ExecutionContext. Some pools or ExecutionContexts may not want or need it. In this patch, the defaultExecutionContext does not keep the batching optimization. Whether it should have it should perhaps be determined through benchmarking. - move internalBlockingCall to BlockContext and remove currentExecutionContext In this patch, BlockContext must be implemented by Thread.currentThread, so the thread pool is the only place you can add custom hooks to be run when blocking. We implement BlockContext for the default ForkJoinWorkerThread in terms of ForkJoinPool.ManagedBlocker. - add public BlockContext.current and BlockContext.withBlockContext These allow an ExecutionContext or other code to override the BlockContext for the current thread. With this API, the BlockContext is customizable without creating a new pool of threads. BlockContext.current is needed to obtain the previous BlockContext before you push, so you can "chain up" to it if desired. BlockContext.withBlockContext is used to override the context for a given piece of code. - move isFutureThrowable into impl.Future - add implicitNotFound to ExecutionContext - remove default global EC from future {} and promise {} - add ExecutionContext.global for explicit use of the global default EC, replaces defaultExecutionContext - add a timeout to scala-concurrent-tck tests that block on SyncVar (so tests time out rather than hang) - insert blocking{} calls into concurrent tck to fix deadlocking - add NonFatal.apply and tests for NonFatal - add OnCompleteRunnable marker trait This would allow an ExecutionContext to distinguish a Runnable originating from Future.onComplete (all callbacks on Future end up going through onComplete). - rename ListenerRunnable to CallbackRunnable and use for KeptPromise too Just adds some clarity and consistency.
* SI-5981, SI-5979, SI-5973 Closed. Maintenance to Try.Heather Miller2012-07-051-78/+78
|
* Move implicit ExecutionContext to be determined by lexical scopephaller2012-05-241-0/+121
| | | | | | | | | | | | | | Port of a pull request originally submitted by @havocp. - declare the invariant that all app callbacks have an associated ExecutionContext provided at the place the callback is passed to a method on Future - always run callbacks in their associated EC - since all callbacks have their own EC, Promise does not need one - "internal" callbacks don't need to defer execution either since we know the ultimate app callback will do so, therefore we can use an immediate executor for these
* SIP-14: clean ups and fixesphaller2012-05-171-10/+86
|
* Clean ups in futures based on review by @heathermiller and review by ↵phaller2012-04-151-3/+4
| | | | @viktorklang
* Fix issues with exception handling in futures. Review by @heathermillerphaller2012-04-141-4/+7
|
* Add tests for future combinators: map, flatMap, filter, collect, foreach, ↵phaller2012-04-041-16/+274
| | | | recoverWith, zip, fallbackTo
* Remedies Try/Either signature disparity for source compat. w/ AkkaHeather Miller2012-04-031-3/+77
|
* Work on source compatibility between akka and scala futures.Aleksandar Prokopec2012-03-281-1/+1
| | | | | Removed some methods from execution contexts. Changed Awaitable interface.
* Cleaned up Duration for the standard library.Vojin Jovanovic2012-03-201-1/+1
| | | | | | | | | | | - Removed Timeout from the library. Each library should provide its own implementation of Timeout - Removed duration package object and replaced it with regular object - Removed usages of post Java 1.5 TimeUnit members - Added factory methods for FiniteDuration - Cleaned up some unnecessary comments - Merged duration DSL with Duration.scala file Review by: @phaller
* Fix race condition in scala-concurrent-tck testPhilipp Haller2012-02-191-1/+1
|
* Disable execution context and futures implementation in the default package.Aleksandar Prokopec2012-02-161-11/+12
| | | | | | | Fixed some tests so that they work now. The Transactions.scala test was failing when defined in scala.concurrent package, reporting that type `_$1` is defined twice. Until we figure out the reason for this, the package name in that test is renamed.
* Migrate akka promises. Changes to some of the interfaces.aleksandar2012-01-131-7/+5
|
* Port of akka Future implementation in progress.aleksandar2012-01-121-1/+14
|
* Refactor await calls for awaitable objects to ready and result calls.aleksandar2012-01-121-37/+49
|
* Make base TCK more uniform with Akka TCKPhilipp Haller2011-12-131-3/+4
|
* Add test for recover to Akka TCKPhilipp Haller2011-12-131-1/+0
|
* Force output of exception in assert. Add tests for recover.Philipp Haller2011-12-131-2/+33
|
* Change promise method signature.aleksandar2011-12-131-1/+1
|
* Add test cases for blocking. Fix in the failed projection.aleksandar2011-12-131-3/+27
|
* Rename block->await. Add more tck test cases.aleksandar2011-12-131-8/+87
|
* Add stubs for future combinator tests.Philipp Haller2011-12-131-1/+67
|
* Fix default.ExecutionContextImpl.promise. Add promise test.Philipp Haller2011-12-131-1/+24
|
* Adding the tck test file.aleksandar2011-12-121-0/+166