summaryrefslogtreecommitdiff
path: root/src/actors/scala/actors/Future.scala
Commit message (Collapse)AuthorAgeFilesLines
* Remove scala.actors and the actors migration module dependencyLukas Rytz2015-04-231-243/+0
|
* deprecate Pair and TripleDen Shabalin2013-11-201-7/+7
|
* SI-6807 Deprecating the Actors library.Vojin Jovanovic2013-02-071-0/+2
| | | | | | | | All public classes, traits and objects marked as deprecated. Added deprecation note on the package object. Embedded external libraries (ThreadPool etc.) are not deprecated as they are intended for internal use only. Review by: @phaller
* Merge commit 'refs/pull/1574/head' into merge-210Paul Phillips2012-11-051-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'refs/pull/1574/head': (24 commits) Fixing issue where OSGi bundles weren't getting used for distribution. Fixes example in Type.asSeenFrom Fix for SI-6600, regression with ScalaNumber. SI-6562 Fix crash with class nested in @inline method Brings copyrights in Scaladoc footer and manpage up-to-date, from 2011/12 to 2013 Brings all copyrights (in comments) up-to-date, from 2011/12 to 2013 SI-6606 Drops new icons in, replaces abstract types placeholder icons SI-6132 Revisited, cleaned-up, links fixed, spelling errors fixed, rewordings Labeling scala.reflect and scala.reflect.macros experimental in the API docs Typo-fix in scala.concurrent.Future, thanks to @pavelpavlov Remove implementation details from Position (they are still under reflection.internal). It probably needs more cleanup of the api wrt to ranges etc but let's leave it for later SI-6399 Adds API docs for Any and AnyVal Removing actors-migration from main repository so it can live on elsewhere. Fix for SI-6597, implicit case class crasher. SI-6578 Harden against synthetics being added more than once. SI-6556 no assert for surprising ctor result type Removing actors-migration from main repository so it can live on elsewhere. Fixes SI-6500 by making erasure more regular. Modification to SI-6534 patch. Fixes SI-6559 - StringContext not using passed in escape function. ... Conflicts: src/actors-migration/scala/actors/migration/StashingActor.scala src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala src/compiler/scala/tools/nsc/settings/AestheticSettings.scala src/compiler/scala/tools/nsc/transform/Erasure.scala src/library/scala/Application.scala src/library/scala/collection/immutable/GenIterable.scala.disabled src/library/scala/collection/immutable/GenMap.scala.disabled src/library/scala/collection/immutable/GenSeq.scala.disabled src/library/scala/collection/immutable/GenSet.scala.disabled src/library/scala/collection/immutable/GenTraversable.scala.disabled src/library/scala/collection/mutable/GenIterable.scala.disabled src/library/scala/collection/mutable/GenMap.scala.disabled src/library/scala/collection/mutable/GenSeq.scala.disabled src/library/scala/collection/mutable/GenSet.scala.disabled src/library/scala/collection/mutable/GenTraversable.scala.disabled src/library/scala/collection/parallel/immutable/ParNumericRange.scala.disabled
| * Brings all copyrights (in comments) up-to-date, from 2011/12 to 2013Heather Miller2012-11-021-1/+1
| |
* | Removing unused locals and making vars into vals.Paul Phillips2012-11-031-1/+1
|/ | | | | | | | | | | | | | According to "git diff" the difference from master to this commit includes: Minus: 112 vals, 135 vars Plus: 165 vals, 2 vars Assuming all the removed ones were vals, which is true from 10K feet, it suggests I removed 80 unused vals and turned 133 vars into vals. There are a few other -Xlint driven improvements bundled with this, like putting double-parentheses around Some((x, y)) so it doesn't trigger the "adapting argument list" warning.
* More relative path elimination.Paul Phillips2012-09-151-1/+1
| | | | | | | | | | | | | | | | Some names I missed in 55b609458fd . How one might know when one is done: mkdir scratch && cd scratch mkdir annotation beans collection compat concurrent io \ math parallel ref reflect runtime scala sys testing \ text tools util xml scalac $(find ../src/library -name '*.scala') Until recently that would fail with about a billion errors. When it compiles, that's when you're done. And that's where this commit takes us, for src/library at least.
* Eliminate breaking relative names in source.Paul Phillips2012-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These things are killing me. Constructions like package scala.foo.bar.baz import foo.Other DO NOT WORK in general. Such files are not really in the "scala" package, because it is not declared package scala package foo.bar.baz And there is a second problem: using a relative path name means compilation will fail in the presence of a directory of the same name, e.g. % mkdir reflect % scalac src/reflect/scala/reflect/internal/util/Position.scala src/reflect/scala/reflect/internal/util/Position.scala:9: error: object ClassTag is not a member of package reflect import reflect.ClassTag ^ src/reflect/scala/reflect/internal/util/Position.scala:10: error: object base is not a member of package reflect import reflect.base.Attachments ^ As a rule, do not use relative package paths unless you have explicitly imported the path to which you think you are relative. Better yet, don't use them at all. Unfortunately they mostly work because scala variously thinks everything scala.* is in the scala package and/or because you usually aren't bootstrapping and it falls through to an existing version of the class already on the classpath. Making the paths explicit is not a complete solution - in particular, we remain enormously vulnerable to any directory or package called "scala" which isn't ours - but it greatly limts the severity of the problem.
* a fast, functional PartialFunction implementationPavel Pavlov2012-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | runtime.AbstractPartialFunction provides a default implementation for the new-style partial function. In principle this class is only subclassed by compiler-generated partial functions arising from matches. Either - the apply method (old-style partialfun) or - the applyOrElse method (current scheme) must be overridden, and the isDefinedAt method implemented. The applyOrElse method implementation is provided to ease the transition from the old scheme, since starr still generates old-style PartialFunctions, but locker's library has the new AbstractPartialFunction. Thus, this implementation is intended as a drop-in replacement for the old partial function, and does not require changes to the compiler. (compiler patches, both for old and new-style pattern matching, follow) - runtime.AbstractPartialFunction is based on PartialFunction.WithDefault Original version of FunctionWithDefault by Odersky (http://article.gmane.org/gmane.comp.lang.scala.internals/4032) - better performance for OrElse#applyOrElse, OrElse#lift, PF.cond - new combinator methods: PF#run, PF#runWith, PF.apply authored by @pavelpavlov, refactored by @adriaanm, review by @paulp
* Fast PartialFunction # orElse.Martin Odersky2011-11-241-1/+1
|
* AbstractPartialFunction.Paul Phillips2011-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Contributed by Todd Vierling with minor mods by extempore. This is an obvious extension of AbstractFunctionN which I had some issue making work at the time. Sounds kind of pitiful given that the compiler patch is about two lines, but let's all agree to believe it was a different world then. This example program is impacted as follows: class A { def f: PartialFunction[Any, Int] = { case x: String => 1 } def g: PartialFunction[Any, Int] = f orElse { case x: List[_] => 2 } def h: PartialFunction[Any, Int] = g orElse { case x: Set[_] => 3 } } Before: 34943 bytes of bytecode After: 4217 bytes of bytecode A mere 88% reduction in size. "'Tis but a trifle!" Closes SI-5096, SI-5097.
* Removing the code which has been deprecated sin...Paul Phillips2011-08-151-8/+0
| | | | | | | Removing the code which has been deprecated since 2.8.0. Contributed by Simon Ochsenreither, although deleting code is such fun one hesitates to call it a contribution. Still, we will. Closes SI-4860, no review.
* Added two new compiler options:Paul Phillips2011-07-291-1/+3
| | | | | | | | | | | | | | | -Ywarn-adapted-args // also included in -Xlint -Yno-adapted-args The former warns when a () is inserted or an argument list is implicitly tupled. The latter errors under the same conditions. Using these options I found several bugs in the distribution which would otherwise be nearly impossible to spot. These bugs were innocuous (I think) but similar bugs could easily be (and have been) otherwise. Certain particularly threatening scenarios are at minimum warned about regardless of options given. Closes SI-4851, no review.
* Adds "since" field to @deprecated.Paul Phillips2011-04-141-3/+3
| | | | | | for the patch, as it's a change I've always wanted. Moving up in the glamorous world of scala commits! No review.
* Applying davetron5000's actors docs patches.Aleksandar Pokopec2011-02-151-4/+3
| | | | | Review by phaller.
* Updated copyright notices to 2011Antonio Cunei2011-01-201-1/+1
|
* Fixed -Xcheckinit build. No review.Philipp Haller2010-05-171-1/+1
|
* Removed more than 3400 svn '$Id' keywords and r...Antonio Cunei2010-05-121-1/+0
| | | | | Removed more than 3400 svn '$Id' keywords and related junk.
* Closes #3407. Closes #3412. Review by plocinic.Philipp Haller2010-05-091-57/+60
|
* Re-added deprecated member to scala.actors.Fut...Philipp Haller2010-02-081-0/+3
| | | | | Re-added deprecated member to scala.actors.Future. No review necessary.
* Closes #3009.Philipp Haller2010-02-021-11/+26
|
* Reverted over-zealous replacement of 'PartialFu...Antonio Cunei2010-01-151-3/+3
| | | | | Reverted over-zealous replacement of 'PartialFunction' with '=>?'.
* Took full advantage of the new =>? alias for th...Paul Phillips2009-12-221-3/+3
| | | | | | | Took full advantage of the new =>? alias for the superverbosely named PartialFunction by renaming every usage of the latter except when in comments.
* closed #1449. review by community.Philipp Haller2009-12-211-9/+40
|
* small correction in doc comment. no review.Philipp Haller2009-12-211-3/+2
|
* closed #2829. review by rompf.Philipp Haller2009-12-211-6/+6
|
* Documented scala.actors.Futures API.Philipp Haller2009-12-211-30/+56
|
* Eliminating the deprecation warnings in the act...Paul Phillips2009-12-151-7/+13
| | | | | Eliminating the deprecation warnings in the actor library.
* Updated copyright notices to 2010Antonio Cunei2009-12-071-1/+1
|
* Reverted r19466, as the decision is now thatAntonio Cunei2009-11-091-1/+1
| | | | | isDefinedAt should /not/ be in Function1
* Adds isDefinedAt to Function1. As a consequence,Antonio Cunei2009-11-091-1/+1
| | | | | | | | code that mixes in PartialFunction now have to define isDefinedAt as override. Fixes #2225.
* Fix and test for #2530.Philipp Haller2009-11-031-1/+2
|
* Fix and test for #2515.Philipp Haller2009-10-251-2/+7
|
* Introduced actors package object to deprecate a...Philipp Haller2009-09-241-7/+4
| | | | | | | | | | | Introduced actors package object to deprecate a number of classes. Made ForkJoinScheduler more configurable and let it read ThreadPoolConfig. Clean-ups in TerminationMonitor and ActorGC. Removed DefaultExecutorScheduler. Made DelegatingScheduler and ExecutorScheduler private. Deprecated MessageQueue and MessageQueueElement, so that we can later make them private. Deprecated a number of methods in IScheduler. Tightened access modifiers in Reactor.
* Fixed #2359.Philipp Haller2009-09-241-2/+2
|
* Moved new scheduler classes into package scala....Philipp Haller2009-07-211-0/+2
| | | | | Moved new scheduler classes into package scala.actors.scheduler.
* Refactoring of sender/reply, as well as !!, !? ...Philipp Haller2009-06-281-0/+22
| | | | | | Refactoring of sender/reply, as well as !!, !? methods into separate traits.
* Renamed OutputChannelActor to Reactor.Philipp Haller2009-05-311-3/+4
| | | | | | | Renamed Future.ch to Future.inputChannel. Exceptions are handled properly while matching messages. Tasks that execute actors no longer catch Throwable, but Exception.
* Implemented #2015.Philipp Haller2009-05-271-1/+1
|
* Made Future's InputChannel for useful, especial...Philipp Haller2009-04-081-1/+1
| | | | | Made Future's InputChannel for useful, especially in conjunction with the def svn di/2 in the Actor trait.
* Fixed #1451.Philipp Haller2009-01-301-3/+9
|
* Updated (all) copyright notices to 2009Antonio Cunei2009-01-131-1/+1
|
* Replaced TimerThread with java.util.Timer.Philipp Haller2008-09-291-1/+4
|
* Added support for defining actors using `Respon...Philipp Haller2008-04-231-1/+1
| | | | | | | | Added support for defining actors using `Responder`s (using the `reactor` factory method). `Future`s are now also `Responder`s. Actors have an additional method `async` which makes methods like `react` usable inside `Responder`s.
* Added support for defining actors using s (usin...Philipp Haller2008-04-231-6/+7
| | | | | | | Added support for defining actors using s (using the factory method). s are now also s. Actors have an additional method which makes methods like usable inside s.
* fixed #779Philipp Haller2008-04-211-1/+3
|
* added svn:keywords and missing file headersmichelou2007-09-031-1/+1
|
* removed some more type aliasesmichelou2007-07-231-2/+2
|
* Added scaladoc comments to InputChannel and Out...Philipp Haller2007-07-091-2/+2
| | | | | | Added scaladoc comments to InputChannel and OutputChannel traits. Added ? method to InputChannel. Bumped version numbers.
* incremented MinorVersion, deprecated All/AllRef...michelou2007-06-131-7/+7
| | | | | | incremented MinorVersion, deprecated All/AllRef, remove many type aliases