MCPcopy
hub / github.com/httpie/cli / worker

Function worker

httpie/uploads.py:111–117  ·  view source on GitHub ↗
(event: threading.Event)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected