Returns true if this process has a job token.
()
| 339 | |
| 340 | |
| 341 | def has_token(): |
| 342 | """Returns true if this process has a job token.""" |
| 343 | assert _mytokens >= 0 |
| 344 | if _mytokens >= 1: |
| 345 | return True |
| 346 | |
| 347 | |
| 348 | def _ensure_token(reason, max_delay=None): |
no outgoing calls
no test coverage detected