Advertisement
Guest User

main.nf

a guest
Apr 17th, 2017
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.23 KB | None | 0 0
  1. process test {
  2.     input:
  3.     val meh from Channel.from(1)
  4.  
  5.     script:
  6.     """
  7.    cancel() {
  8.        echo hi
  9.        sleep 10
  10.        echo bye
  11.    }
  12.    trap cancel SIGINT
  13.    sleep 100 &
  14.    wait
  15.    echo done
  16.    """
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement