(id string)
| 24 | } |
| 25 | |
| 26 | func (ts *taskStore) Get(id string) (*taskHandle, bool) { |
| 27 | ts.lock.RLock() |
| 28 | defer ts.lock.RUnlock() |
| 29 | t, ok := ts.store[id] |
| 30 | return t, ok |
| 31 | } |
| 32 | |
| 33 | func (ts *taskStore) Delete(id string) { |
| 34 | ts.lock.Lock() |
no outgoing calls
no test coverage detected