(s string)
| 468 | } |
| 469 | |
| 470 | func parseTime(s string) (time.Time, error) { |
| 471 | nsec, err := strconv.ParseFloat(s, 64) |
| 472 | if err != nil { |
| 473 | return time.Time{}, err |
| 474 | } |
| 475 | return time.Unix(0, int64(nsec)).UTC(), nil |
| 476 | } |
| 477 | |
| 478 | // dispatchTask dispatches tasks for the callers of popTask. At least one dispatcher is required in order to use popTask. |
| 479 | // The tasks are moved from InputTaskKey(k) to WaitingTaskKey(k). Once the task should be dispatched, it is moved form WaitingTaskKey(k) to ReadyTaskKey(k). |
no outgoing calls
no test coverage detected