Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
| ... | ... |
@@ -60,7 +60,7 @@ func wait(waitChan <-chan struct{}, timeout time.Duration) error {
|
| 60 | 60 |
} |
| 61 | 61 |
|
| 62 | 62 |
// WaitRunning waits until state is running. If state already running it returns |
| 63 |
-// immediatly. If you want wait forever you must supply negative timeout. |
|
| 63 |
+// immediately. If you want wait forever you must supply negative timeout. |
|
| 64 | 64 |
// Returns pid, that was passed to SetRunning |
| 65 | 65 |
func (s *State) WaitRunning(timeout time.Duration) (int, error) {
|
| 66 | 66 |
s.Lock() |
| ... | ... |
@@ -78,7 +78,7 @@ func (s *State) WaitRunning(timeout time.Duration) (int, error) {
|
| 78 | 78 |
} |
| 79 | 79 |
|
| 80 | 80 |
// WaitStop waits until state is stopped. If state already stopped it returns |
| 81 |
-// immediatly. If you want wait forever you must supply negative timeout. |
|
| 81 |
+// immediately. If you want wait forever you must supply negative timeout. |
|
| 82 | 82 |
// Returns exit code, that was passed to SetStopped |
| 83 | 83 |
func (s *State) WaitStop(timeout time.Duration) (int, error) {
|
| 84 | 84 |
s.Lock() |