chiark
/
gitweb
/
~mdw
/
tripe-android
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5c2b151
)
admin.scala: Make `Connection' be its own publisher type.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 9 Jun 2018 12:21:29 +0000
(13:21 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 9 Jun 2018 13:00:09 +0000
(14:00 +0100)
admin.scala
patch
|
blob
|
blame
|
history
diff --git
a/admin.scala
b/admin.scala
index 56f1c30338e1980b04b839b3bd5be7f7f82b074a..fab8305f68f1792eda16bb2887d21308106c3af2 100644
(file)
--- a/
admin.scala
+++ b/
admin.scala
@@
-92,6
+92,8
@@
class Connection(val in: Reader, val out: Writer)
val jobmap = new HashMap[String, this.Job]; // Maps tags to extant jobs.
var bgseq = 0; // Next background job tag.
val jobmap = new HashMap[String, this.Job]; // Maps tags to extant jobs.
var bgseq = 0; // Next background job tag.
+ type Pub = Connection;
+
class Job extends Iterator[Seq[String]] {
private[Connection] val ch = new Channel[JobMessage];
private[this] var nextmsg: Option[JobMessage] = None;
class Job extends Iterator[Seq[String]] {
private[Connection] val ch = new Channel[JobMessage];
private[this] var nextmsg: Option[JobMessage] = None;