学习资料
include { watchTopic } from 'plugin/nf-kafka' ch = channel.watchTopic('my-topic') .subscribe { println "new message received ${it[0]} = ${it[1]}" } .until{ it[1] == 'done' }
Channel .watchPath( '/path/*.fa' ) .subscribe { println "Fasta file: $it" }
Channel .of( 1, 2, 3 ) .subscribe onNext: { println it }, onComplete: { println 'Done' }