Oliver Gugger deefa3a9f1
fn: add ContextGuard from tapd repo
This adds the ContextGuard struct from the taproot-assets repository
that has been in use there for a while.

The context guard allows for easy creation of contexts that depend on a
central wait group and quit channel.

A context can either be created with a timeout and quit, meaning it will
cancel either on reaching the timeout or when the central quit channel
is closed.

Or a context can be created to block and use a timeout, meaning it will
_not_ cancel on quit but rather block the shutdown until it is completed
(or times out).

The third way is to create a context that just cancels on quit with no
timeout.
2024-10-17 13:11:30 +02:00
..
2024-07-10 17:06:04 -07:00
2024-07-10 15:37:27 -07:00
2024-07-10 17:06:04 -07:00
2024-07-10 17:06:04 -07:00
2024-10-02 20:29:59 -03:00
2024-09-26 14:24:36 -06:00
2024-09-26 14:24:36 -06:00
2024-05-10 09:55:16 +01:00
2024-05-10 09:55:16 +01:00
2024-01-23 19:09:45 -08:00
2024-07-31 12:59:10 -07:00
2024-01-23 19:09:50 -08:00
2024-10-04 01:07:47 +02:00