[SERVER-50609] Make generic doWhile utility for futures Created: 28/Aug/20  Updated: 06/Dec/22  Resolved: 28/Aug/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-50341 Make generic whenAll, whenAny, collec... Closed
Assigned Teams:
Sharding
Participants:

 Description   

There is anĀ existing doWhile utility in one of the transaction coordinator libraries that we should move to a more generic place so it can be used by other code, particularly primary-only services.



 Comments   
Comment by Esha Maharishi (Inactive) [ 28/Aug/20 ]

There's actually already a generic utility called AsyncTry that does the same thing (see example usage here), so there's no need to move txn::doWhile into a generic library.

Generated at Thu Feb 08 05:23:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.