You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// RunnableWithShutdownChan is a runnable with functions to run at shutdown and terminate.
102
-
// After the atShutdown channel is closed, the main function must return once shutdown is complete.
103
-
// (Optionally IsHammer may be waited for instead however, this should be avoided if possible.)
104
-
// The callback function provided to atTerminate must return once termination is complete.
105
-
// Please note that use of the atTerminate function will create a go-routine that will wait till terminate - users must therefore be careful to only call this as necessary.
// RunWithShutdownChan takes a function that has channel to watch for shutdown and atTerminate callbacks
109
-
// After the atShutdown channel is closed, the main function must return once shutdown is complete.
110
-
// (Optionally IsHammer may be waited for instead however, this should be avoided if possible.)
111
-
// The callback function provided to atTerminate must return once termination is complete.
112
-
// Please note that use of the atTerminate function will create a go-routine that will wait till terminate - users must therefore be careful to only call this as necessary.
Copy file name to clipboardExpand all lines: modules/process/manager.go
+11-8
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ import (
11
11
"fmt"
12
12
"io"
13
13
"os/exec"
14
+
"runtime/pprof"
14
15
"sort"
15
16
"strconv"
16
17
"sync"
@@ -66,11 +67,9 @@ func GetManager() *Manager {
66
67
// Most processes will not need to use the cancel function but there will be cases whereby you want to cancel the process but not immediately remove it from the
// Most processes will not need to use the cancel function but there will be cases whereby you want to cancel the process but not immediately remove it from the
0 commit comments