diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-09-20 14:02:44 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-09-21 09:04:15 +0200 |
commit | 7f4b44b612abdc62fba9810194cee17c7d0de37e (patch) | |
tree | f4b3268f6cb3d8246f8520571570ee87c022ab14 /test/files/run/future-flatmap-exec-count.check | |
parent | e176a1005186f5d6da8ed5a79820d12ca7280e3b (diff) | |
download | scala-7f4b44b612abdc62fba9810194cee17c7d0de37e.tar.gz scala-7f4b44b612abdc62fba9810194cee17c7d0de37e.tar.bz2 scala-7f4b44b612abdc62fba9810194cee17c7d0de37e.zip |
SI-7861 Don't execute internal callbacks on the user Executor
Callbacks internal to the implementation of Futures should be
executed with the `InternalCallbackExecutor`, rather than the
user supplied `Executor`.
In a refactoring da54f34a6, `recoverWith` and `flatMap` no longer
played by these rules. This was noticed by a persnickety test in
Play.
Before this patch, the enclosed test outputs:
% scala-hash v2.10.3-RC2 test/files/run/future-flatmap-exec-count.scala
mapping
execute()
flatmapping
execute()
execute()
recovering
execute()
execute()
Diffstat (limited to 'test/files/run/future-flatmap-exec-count.check')
-rw-r--r-- | test/files/run/future-flatmap-exec-count.check | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/future-flatmap-exec-count.check b/test/files/run/future-flatmap-exec-count.check new file mode 100644 index 0000000000..dd9dce64ed --- /dev/null +++ b/test/files/run/future-flatmap-exec-count.check @@ -0,0 +1,6 @@ +mapping +execute() +flatmapping +execute() +recovering +execute() |