Push a resource into the scheduler. This function can trigger callbacks in the scheduler. Parameters ---------- value : object The resource to be put in the scheduler.
(self, value)
| 87 | """Abstract interface of scheduler.""" |
| 88 | |
| 89 | def put(self, value): |
| 90 | """Push a resource into the scheduler. |
| 91 | |
| 92 | This function can trigger callbacks in the scheduler. |
| 93 | |
| 94 | Parameters |
| 95 | ---------- |
| 96 | value : object |
| 97 | The resource to be put in the scheduler. |
| 98 | """ |
| 99 | raise NotImplementedError() |
| 100 | |
| 101 | def request(self, user, priority, callback): |
| 102 | """Request a resource. |