You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala/Scheduler.scala
+52-12Lines changed: 52 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ trait Scheduler {
31
31
/**
32
32
* Parallelism available to a Scheduler.
33
33
*
34
-
* This defaults to {@code Runtime.getRuntime().availableProcessors()} but can be overridden for use cases such as scheduling work on a computer cluster.
34
+
* This defaults to `Runtime.getRuntime().availableProcessors()` but can be overridden for use cases such as scheduling work on a computer cluster.
35
35
*
36
36
* @return the scheduler's available degree of parallelism.
37
37
*/
@@ -42,6 +42,15 @@ trait Scheduler {
42
42
*/
43
43
defnow:Long=this.asJavaScheduler.now()
44
44
45
+
/**
46
+
* Retrieve or create a new [[rx.lang.scala.Worker]] that represents serial execution of actions.
47
+
* <p>
48
+
* When work is completed it should be unsubscribed using [[rx.lang.scala.Worker unsubscribe]].
49
+
* <p>
50
+
* Work on a [[rx.lang.scala.Worker]] is guaranteed to be sequential.
51
+
*
52
+
* @return Inner representing a serial queue of actions to be executed
0 commit comments