repo.or.cz
/
supercollider.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
class library: Volume - remove debug message
[supercollider.git]
/
SCClassLibrary
/
Common
/
Streams
/
FuncStreamAsRoutine.sc
blob
c9941e8d42ea6241933513ad1ae9c7ef1f28ea77
1
FuncStreamAsRoutine : Routine {
2
var <>nextFunc;
3
var <>resetFunc;
4
5
*new { arg nextFunc, resetFunc;
6
^super.new({ arg inval;
7
loop {
8
inval = yield(thisThread.nextFunc.value(inval))
9
}
10
})
11
.nextFunc_(nextFunc).resetFunc_(resetFunc)
12
}
13
14
reset { ^resetFunc.value }
15
}