Jelle Raaijmakers
2b78b84979
AK+Everywhere: Add and use weak_callback()
...
We have a common pattern of creating a `WeakPtr<T>` from a reference and
passing that into a lambda, to then take the strong ref when the lambda
is executed. Add `weak_callback(Weakable, lambda)` that returns a lambda
that only invokes the callback if a strong ref exists, and passes it as
the first argument.
2026-02-26 08:03:50 -05:00
..
2025-10-20 10:51:19 +01:00
2025-10-20 10:51:19 +01:00
2025-10-20 10:51:19 +01:00
2025-10-20 10:51:19 +01:00
2025-10-20 10:51:19 +01:00
2025-10-20 10:51:19 +01:00
2025-03-13 16:56:28 -04:00
2025-08-23 16:04:36 -06:00
2025-03-13 16:56:28 -04:00
2025-08-23 16:04:36 -06:00
2025-06-06 17:08:41 -04:00
2025-08-23 16:04:36 -06:00
2026-02-26 08:03:50 -05:00
2026-01-15 20:10:19 +01:00
2025-03-13 16:56:28 -04:00
2025-08-23 16:04:36 -06:00
2025-03-13 16:56:28 -04:00
2025-08-23 16:04:36 -06:00
2025-03-13 16:56:28 -04:00
2025-08-23 16:04:36 -06:00
2026-01-15 20:10:19 +01:00
2026-01-15 20:10:19 +01:00
2026-01-15 20:10:19 +01:00
2026-01-15 20:10:19 +01:00
2025-03-24 09:49:50 +00:00
2025-10-20 10:51:19 +01:00
2026-02-26 08:03:50 -05:00
2025-08-23 16:04:36 -06:00
2025-10-20 10:51:19 +01:00
2025-10-20 10:51:19 +01:00
2025-03-13 16:56:28 -04:00
2025-08-23 16:04:36 -06:00
2025-03-13 16:56:28 -04:00
2025-08-23 16:04:36 -06:00
2026-01-15 20:10:19 +01:00
2025-08-23 16:04:36 -06:00
2026-02-26 08:03:50 -05:00
2025-08-23 16:04:36 -06:00
2025-03-13 16:56:28 -04:00
2026-01-15 20:10:19 +01:00
2025-03-13 16:56:28 -04:00
2025-08-23 16:04:36 -06:00
2025-03-13 16:56:28 -04:00
2025-08-23 16:04:36 -06:00
2025-03-13 16:56:28 -04:00
2025-08-23 16:04:36 -06:00
2026-02-26 08:03:50 -05:00
2025-10-20 10:51:19 +01:00
2026-01-15 20:10:19 +01:00
2026-01-15 20:10:19 +01:00