Derek Williams
e4b96b16aa
Refactor for improved clarity and performance.
...
'Either' already uses pattern matching internally for all of it's methods,
and the 'right' and 'left' methods allocate an 'Option' which is now avoided.
2011-05-19 21:08:27 -06:00
Derek Williams
5b99014cba
Refactor to avoid allocations
2011-05-19 17:23:19 -06:00
Derek Williams
634d26aa86
Add PromiseStream
2011-05-19 14:43:58 -06:00
Derek Williams
8058a5514a
Specialize monadic methods for AlreadyCompletedFuture, fixes #853
2011-05-19 14:37:54 -06:00
Jonas Bonér
a7311c83e6
Added Scalariform sbt plugin which formats code on each compile. Also checking in reformatted code
2011-05-18 17:25:30 +02:00
Peter Veentjer
e7d1eaf15c
- more style related cleanup
2011-05-18 08:37:58 +02:00
Jonas Bonér
2655d44ee9
Merged wip-2.0 branch with latest master
2011-05-16 12:32:00 +02:00
Viktor Klang
5b54de7f48
Changing signature of traverse and sequence to return java.lang.Iterable, updated docs as well, closing #847
2011-05-11 13:29:29 +02:00
Peter Vlugter
6f17d2cf6d
Fix @deprecated warnings
2011-05-06 11:55:58 +12:00
Derek Williams
8752eb5452
Add Promise factory object for creating new CompletableFutures
2011-05-03 18:49:14 -06:00
Derek Williams
5b18f18ffd
Fix bug with 'Future << x', must be used within a 'flow' block now
2011-05-03 18:49:14 -06:00
Derek Williams
cb2d607393
remove extra allocations and fix scaladoc type inference problem
2011-05-02 16:56:42 -06:00
Derek Williams
67f1e2fbca
Fix Future.flow compile time type safety
2011-05-02 14:44:40 -06:00
Derek Williams
2d2bdeec7a
Will always infer type as Any, so should explicitly state it.
2011-05-02 09:09:14 -06:00
Derek Williams
e4e53af508
Fix Scaladoc generation failure
2011-04-30 09:09:30 -06:00
Derek Williams
846d63aa92
Merge branch 'master' into delimited-continuations
...
Conflicts:
akka-actor-tests/src/test/scala/akka/dispatch/FutureSpec.scala
akka-actor/src/main/scala/akka/dispatch/Future.scala
project/build/AkkaProject.scala
2011-04-30 08:59:45 -06:00
Viktor Klang
c2486cd52c
Fixing ticket 808
2011-04-29 17:15:00 +02:00
Viktor Klang
d69baf74ae
Reverting to ThreadLocal
2011-04-29 15:50:25 +02:00
Viktor Klang
1fb228c06d
Reducing object creation overhead
2011-04-29 13:22:39 +02:00
Derek Williams
2bfa5e5fc2
Add @tailrec check
2011-04-28 21:24:58 -06:00
Derek Williams
ae481fc39a
Avoid unneeded allocations
2011-04-28 21:14:18 -06:00
Derek Williams
f6e142a583
prevent chain of callbacks from overflowing the stack
2011-04-28 20:53:45 -06:00
Derek Williams
485013a353
Dispatcher executed Future will be cleaned up even after expiring
2011-04-27 20:45:39 -06:00
Viktor Klang
800840719f
Making it impossible to complete a future after its expired, and not run onComplete callbacks if it hasnt been completed before expiry, fixing ticket #811
2011-04-27 16:52:19 +02:00
Viktor Klang
82a11110d3
Removing awaitValue and valueWithin, and adding await(atMost: Duration)
2011-04-27 15:34:42 +02:00
Jonas Bonér
868ec62ee7
Rebased from master branch
2011-04-27 01:06:08 +02:00
Jonas Bonér
2e7c76dd98
Rebased from master
2011-04-27 00:38:10 +02:00
Viktor Klang
c60f46813d
Removing some boiler in Future
2011-04-26 17:19:07 +02:00
Viktor Klang
2432101d6f
Fixing docs for Future.get
2011-04-26 10:49:52 +02:00
Derek Williams
74fcef3891
Add Future.failure
2011-04-25 16:14:07 -06:00
Derek Williams
997151e49c
Improve pattern matching within for comprehensions with Future
2011-04-24 16:05:28 -06:00
Derek Williams
e74aa8f09f
Add documentation to Future.flow and Future.apply
2011-04-23 12:57:28 -06:00
Derek Williams
2c9a813eb6
Refactor Future.flow
2011-04-23 11:53:51 -06:00
Derek Williams
530be7b95d
Fix CompletableFuture.<<(other: Future) to return a Future instead of the result
2011-04-23 09:14:20 -06:00
Derek Williams
b692a8c5dd
Use simpler annotation
2011-04-23 07:49:06 -06:00
Derek Williams
62c3419f31
Remove redundant Future
2011-04-23 07:43:44 -06:00
Roland
33f05856c1
use Future.empty in Future.channel
2011-04-23 11:49:03 +02:00
Roland
6e45ab7c17
add Future.empty[T]
2011-04-23 11:35:54 +02:00
Roland
1ee2446d1f
Merge branch 'wip-testkit2'
...
- also fix some sphinx-build warnings/errors
2011-04-23 11:23:50 +02:00
Patrik Nordwall
a60bbc5f59
Applied patch from bruce.mitchener, with minor adjustment
2011-04-23 08:11:31 +02:00
Derek Williams
120f12d739
Adding delimited continuations to Future
2011-04-22 16:39:21 -06:00
Roland
c86b63cff8
merge master and wip-testkit into wip-testkit2
2011-04-21 21:36:28 +02:00
Roland
4868f726c5
add Future.channel() for obtaining a completable channel
2011-04-21 21:29:57 +02:00
Derek Williams
ff711a4253
Add Java API versions of Future.{traverse, sequence}, closes #786
2011-04-15 13:09:53 -06:00
Patrik Nordwall
e13fb600ea
fixed warnings, asScalaIterable -> collectionAsScalaIterable
2011-04-08 15:55:04 +02:00
Viktor Klang
30c2bd2ccf
Changing the complete* signature from : CompletableFuture to Future, since they can only be written once anyway
2011-04-07 14:10:13 +02:00
Viktor Klang
75be2bd9d2
Changing the complete* signature from : CompletableFuture to Future, since they can only be written once anyway
2011-04-07 14:09:08 +02:00
Viktor Klang
3f49eadedc
Removing more deprecation warnings and more client-managed actors residue
2011-04-07 13:03:23 +02:00
Viktor Klang
0dff50fa52
Removed client-managed actors, a lot of deprecated methods and DataFlowVariable (superceded by Future)
2011-04-07 12:48:30 +02:00
Derek Williams
cfa1c5ddea
Add basic documentation to Futures.{sequence,traverse}
2011-04-03 10:40:06 -06:00