Skip to content

Commit

Permalink
process example 2: set max_wait_time
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz committed Dec 26, 2024
1 parent 5a1bd54 commit 9b74bea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/system/example_process_2.f90
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ program run_async
end if

! Wait for the process to complete
call wait(p)
call wait(p, max_wait_time = 5.0)
print *, "Process has now completed."
end program run_async
4 changes: 1 addition & 3 deletions example/system/example_process_4.f90
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ program example_process_kill

! Verify the process is no longer running
running = is_running(process)
print *, "Process running after kill:", running,' runtime=',elapsed(process)

stop 0
print *, "Process running after kill:", running

end program example_process_kill

0 comments on commit 9b74bea

Please sign in to comment.