Expand description
Small helpers which modules share that do not depend on each other otherwise.
Constantsยง
- SCRATCH ๐
- See
with_scratch.
Functionsยง
- format_
duration ๐ - A duration in whole seconds, with the minutes apart, like
10m,1m 30sor45s, for the errors. - sleep_
until ๐ - Sleep until the deadline, forever without one.
- with_
scratch ๐ - Run
fon a buffer oflenbytes which the thread keeps for all reads which copy what they got out of it right away. The read loops of all containers and attach clients and the runtime calls share it, instead of keeping a buffer each while they wait. It grows to the largestlenasked for and holds what the last use left in it. - with_
stderr ๐ - Append the stderr of a runtime which failed to its error, unless it wrote nothing. It usually holds the reason.