Boris Nagaev 07c46680e9
fn/ContextGuard: use context.AfterFunc to wait
Simplifies context cancellation handling by using context.AfterFunc instead of a
goroutine to wait for context cancellation. This approach avoids the overhead of
a goroutine during the waiting period.

For ctxQuitUnsafe, since g.quit is closed only in the Quit method (which also
cancels all associated contexts), waiting on context cancellation ensures the
same behavior without unnecessary dependency on g.quit.

Added a test to ensure that the Create method does not launch any goroutines.
2025-01-02 10:38:26 -03:00
..
2024-07-10 17:06:04 -07:00
2024-11-06 17:32:58 -07:00
2024-12-10 14:10:33 +01:00
2024-11-20 10:28:55 -07:00
2024-07-10 17:06:04 -07:00
2024-12-16 11:16:00 -03:00
2024-12-16 11:16:00 -03: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-11-06 16:50:02 -07:00
2024-01-23 19:09:50 -08:00
2024-12-18 15:17:23 -05:00
2024-12-13 10:44:03 +02:00