Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.26 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 SIGTERM
  13.    trap '' SIGINT SIGHUP
  14.    sleep 100 &
  15.    wait
  16.    echo done
  17.    """
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement