(event: threading.Event)
| 109 | return None |
| 110 | |
| 111 | def worker(event: threading.Event) -> None: |
| 112 | if not event.wait(timeout=READ_THRESHOLD): |
| 113 | env.stderr.write( |
| 114 | f'> warning: no stdin data read in {READ_THRESHOLD}s ' |
| 115 | f'(perhaps you want to --ignore-stdin)\n' |
| 116 | f'> See: https://httpie.io/docs/cli/best-practices\n' |
| 117 | ) |
| 118 | |
| 119 | # Making it a daemon ensures that if the user exits from the main program |
| 120 | # (e.g. either regularly or with Ctrl-C), the thread will not |