cancels the running process
scala.concurrent.Future#foreach
the underlying future
the underlying future
the future, in which the process runs
check if the process is still running
check if the process is still running
true
if the process is already completed, false
otherwise
scala.concurrent.Future#map
scala.concurrent.Future#onComplete