lnd/fn
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
..
conc_queue.go fn: remove lru dependency 2024-07-10 17:06:04 -07:00
context_guard.go fn: add ContextGuard from tapd repo 2024-10-17 13:11:30 +02:00
either_test.go fn: reimplement internals of either, add tests 2024-07-10 15:37:27 -07:00
either.go fn: reimplement internals of either, add tests 2024-07-10 15:37:27 -07:00
events.go fn: add new EventPublisher event pub/sub system 2024-01-23 19:09:39 -08:00
fn.go fn: add curried (in)equality functions 2024-07-10 15:37:27 -07:00
go.mod fn: remove lru dependency 2024-07-10 17:06:04 -07:00
go.sum fn: remove lru dependency 2024-07-10 17:06:04 -07:00
goroutine_manager_test.go fn: add goroutine manager 2024-10-02 20:29:59 -03:00
goroutine_manager.go fn: add goroutine manager 2024-10-02 20:29:59 -03:00
list_test.go fn: add Filter to List 2024-09-26 14:24:36 -06:00
list.go fn: add Filter to List 2024-09-26 14:24:36 -06:00
map_test.go fn: Added map functions 2024-05-10 09:55:16 +01:00
map.go fn: Added map functions 2024-05-10 09:55:16 +01:00
option.go fn: reimplement internals of either, add tests 2024-07-10 15:37:27 -07:00
predicate.go fn: add predicate combinators for && and || 2024-06-03 12:24:02 -07:00
queue.go fn: add basic generic queue 2024-01-23 19:09:45 -08:00
recv.go fn: add basic generic chan recv utility funcs 2024-01-23 19:09:47 -08:00
req.go fn: harden and refine the Req[I,O] API. 2024-07-31 12:59:10 -07:00
result.go fn: reimplement internals of either, add tests 2024-07-10 15:37:27 -07:00
send.go fn: add SendOrQuit 2024-01-23 19:09:50 -08:00
set.go fn: Add Size and IsEmpty methods to Set 2024-10-04 01:07:47 +02:00
slice_test.go fn: add uncons, unsnoc and its component projections 2024-10-04 14:47:11 -06:00
slice.go fn: add uncons, unsnoc and its component projections 2024-10-04 14:47:11 -06:00
t2.go fn: add fundamental functional primitives 2024-07-10 14:42:11 -07:00