Re: [PATCH v2 2/2] rust: Add read_poll_count_atomic function
From: FUJITA Tomonori
Date: Thu Oct 23 2025 - 01:24:49 EST
On Tue, 21 Oct 2025 14:35:34 +0200
"Danilo Krummrich" <dakr@xxxxxxxxxx> wrote:
>> +pub fn read_poll_count_atomic<Op, Cond, T>(
>
> I understand why you renamed the function, but read_poll_timeout_atomic() would
> still be accurate -- it does perform a timeout in every iteration. Let's keep
> the original name please.
Ok, I'll revert the name.
>> + mut op: Op,
>> + mut cond: Cond,
>> + delay_delta: Delta,
>> + count: usize,
>
> Maybe retry would be a slightly better fit compared to count. If we want to be a
> bit more verbose, I suggest retry_count. :)
Sure, I'll go with 'retry'.