~ubuntu-branches/debian/sid/scala/sid

« back to all changes in this revision

Viewing changes to src/actors/scala/actors/IScheduler.scala

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg, Mehdi Dogguy, Lucas Satabin, Frank S. Thomas, Emmanuel Bourg
  • Date: 2015-06-05 23:52:59 UTC
  • mfrom: (1.2.11)
  • Revision ID: package-import@ubuntu.com-20150605235259-wk00vgk83dh8o19g
Tags: 2.10.5-1
* Team upload.

[ Mehdi Dogguy ]
* New upstream release (Closes: #744278).

[ Lucas Satabin ]
* Update patches
* Update the clean target
* Update paths of elements to install
* Update watch file

[ Frank S. Thomas ]
* Remove myself from Uploaders.

[ Emmanuel Bourg ]
* The package has been adopted by the Java Team (Closes: #754935)
* Patched the build to avoid downloading libraries from the Internet
* Replaced the minified JavaScript files with unobfuscated ones
* No longer build scala-partest.jar until diffutils is packaged or replaced
* debian/watch: Fixed the versions matched (x.y.z instead of x.y.z..z)
* debian/rules:
  - Added the missing get-orig-source target (Closes: #724704)
  - Improved the clean target
* debian/control:
  - Build depend on scala (>= 2.10) and bnd
  - Use canonical URLs for the Vcs-* fields
  - Standards-Version updated to 3.9.6 (no changes)
* Switch to debhelper level 9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*                     __                                               *\
2
2
**     ________ ___   / /  ___     Scala API                            **
3
 
**    / __/ __// _ | / /  / _ |    (c) 2005-2011, LAMP/EPFL             **
 
3
**    / __/ __// _ | / /  / _ |    (c) 2005-2013, LAMP/EPFL             **
4
4
**  __\ \/ /__/ __ |/ /__/ __ |    http://scala-lang.org/               **
5
5
** /____/\___/_/ |_/____/_/ | |                                         **
6
6
**                          |/                                          **
10
10
package scala.actors
11
11
 
12
12
/**
13
 
 * A common interface
14
 
 * for all schedulers used to execute actor tasks.
 
13
 * A common interface for all schedulers used to execute actor tasks.
15
14
 *
16
 
 * Subclasses of <code>Actor</code> that override its
17
 
 * <code>scheduler</code> member must provide
18
 
 * an <code>IScheduler</code> implementation.
 
15
 * Subclasses of `Actor` that override its `scheduler` member must provide
 
16
 * an `IScheduler` implementation.
19
17
 *
20
18
 * @author Philipp Haller
21
19
 */
27
25
   */
28
26
  def execute(fun: => Unit): Unit
29
27
 
30
 
  /** Submits a <code>Runnable</code> for execution.
 
28
  /** Submits a `Runnable` for execution.
31
29
   *
32
30
   *  @param  task  the task to be executed
33
31
   */
36
34
  def executeFromActor(task: Runnable): Unit =
37
35
    execute(task)
38
36
 
39
 
  /** Shuts down the scheduler.
40
 
   */
 
37
  /** Shuts down the scheduler. */
41
38
  def shutdown(): Unit
42
39
 
43
40
  /** When the scheduler is active, it can execute tasks.
 
41
   *
 
42
   * @return `'''true'''`, if the scheduler is active, otherwise false.
44
43
   */
45
44
  def isActive: Boolean
46
45
 
67
66
 
68
67
  def managedBlock(blocker: scala.concurrent.ManagedBlocker): Unit
69
68
 
70
 
  @deprecated("this member is going to be removed in a future release", "2.7.7")
71
 
  def tick(a: Actor) {}
72
 
 
73
 
  @deprecated("this member is going to be removed in a future release", "2.7.7")
74
 
  def onLockup(handler: () => Unit) {}
75
 
 
76
 
  @deprecated("this member is going to be removed in a future release", "2.7.7")
77
 
  def onLockup(millis: Int)(handler: () => Unit) {}
78
 
 
79
 
  @deprecated("this member is going to be removed in a future release", "2.7.7")
80
 
  def printActorDump() {}
81
 
 
82
69
}