17 lines
188 B
Plaintext
17 lines
188 B
Plaintext
process foo {
|
|
fair true
|
|
input:
|
|
val x
|
|
output:
|
|
tuple val(task.index), val(x)
|
|
|
|
script:
|
|
"""
|
|
sleep \$((RANDOM % 3))
|
|
"""
|
|
}
|
|
|
|
|
|
workflow {
|
|
channel.of('a'..'z') | foo | view
|
|
} |