/
package.scala
47 lines (39 loc) · 1.76 KB
/
package.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package scala
/**
* A library that provides both asynchronous and synchronous messaging to allow
* for concurrent programming without explicit synchronization.
*
* == Guide ==
*
* A detailed guide for the actors library is available
* [[http://www.scala-lang.org/docu/files/actors-api/actors_api_guide.html#]].
*
* == Getting Started ==
*
* A starting point for using the actors library would be [[scala.actors.Reactor]],
* [[scala.actors.ReplyReactor]], or [[scala.actors.Actor]] or their companion objects.
*
*/
package object actors {
// type of Reactors tracked by termination detector
private[actors] type TrackedReactor = Reactor[A] forSome { type A >: Null }
@deprecated("use scheduler.ForkJoinScheduler instead")
type FJTaskScheduler2 = scala.actors.scheduler.ForkJoinScheduler
@deprecated("use scheduler.ForkJoinScheduler instead")
type TickedScheduler = scala.actors.scheduler.ForkJoinScheduler
@deprecated("use scheduler.ForkJoinScheduler instead")
type WorkerThreadScheduler = scala.actors.scheduler.ForkJoinScheduler
@deprecated("this class is going to be removed in a future release")
type WorkerThread = java.lang.Thread
@deprecated("use scheduler.SingleThreadedScheduler instead")
type SingleThreadedScheduler = scala.actors.scheduler.SingleThreadedScheduler
// This used to do a blind cast and throw a CCE after the package
// object was loaded. I have replaced with a variation that should work
// in whatever cases that was working but fail less exceptionally for
// those not intentionally using it.
@deprecated("this value is going to be removed in a future release")
val ActorGC = scala.actors.Scheduler.impl match {
case x: scala.actors.scheduler.ActorGC => x
case _ => null
}
}