[elixir-core:12043] [Proposal] Add Access.values/0

2025-03-27 Thread David Pavlík
Hi! I've recently discovered that get_and_update_in/3 and friends can access multiple items at once via Access.all/0, Access.filter/1, and similar. It's a game changer for accessing deeply nested structures. However, there is no function in the standard library for accessing multiple items of

Re: [elixir-core:12050] [Proposal] Add assert_wait to ExUnit

2025-03-28 Thread David Pavlík
ceive. > > > *José Valimhttps://dashbit.co/ <https://dashbit.co/>* > > > On Fri, Mar 28, 2025 at 1:10 PM David Pavlík wrote: > >> Hi! >> >> >> In our codebase, we use a macro called assert_wait that behaves like >> assert but retries if it fails un

[elixir-core:12048] [Proposal] Add assert_wait to ExUnit

2025-03-28 Thread David Pavlík
Hi! In our codebase, we use a macro called assert_wait that behaves like assert but retries if it fails until some timeout is exceeded. If the timeout is reached, it raises in the same way as a failing assert would. We've been using it for about a year and are quite happy with it. We find