Click here to Skip to main content
15,891,423 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I need a project. Meh Pin
Peter Shaw5-Feb-20 1:45
professionalPeter Shaw5-Feb-20 1:45 
GeneralOne commit ago, Dart code worked just fine Pin
Afzaal Ahmad Zeeshan31-Jan-20 8:56
professionalAfzaal Ahmad Zeeshan31-Jan-20 8:56 
GeneralRe: One commit ago, Dart code worked just fine Pin
RickZeeland31-Jan-20 9:20
mveRickZeeland31-Jan-20 9:20 
GeneralRe: One commit ago, Dart code worked just fine Pin
raddevus31-Jan-20 10:06
mvaraddevus31-Jan-20 10:06 
GeneralRe: One commit ago, Dart code worked just fine Pin
Afzaal Ahmad Zeeshan31-Jan-20 12:23
professionalAfzaal Ahmad Zeeshan31-Jan-20 12:23 
GeneralRe: One commit ago, Dart code worked just fine Pin
Mark_Wallace31-Jan-20 10:12
Mark_Wallace31-Jan-20 10:12 
GeneralRe: One commit ago, Dart code worked just fine Pin
Jon McKee31-Jan-20 11:11
professionalJon McKee31-Jan-20 11:11 
GeneralRe: One commit ago, Dart code worked just fine Pin
Afzaal Ahmad Zeeshan31-Jan-20 12:20
professionalAfzaal Ahmad Zeeshan31-Jan-20 12:20 
Yep, you're right. What I am thinking about this is something like:
C#
Future<void> processContacts(List<Contact> contacts) async {
   for (var contact in contacts) {
      if(await database.recipientDao.findRecipientById(contact.identifier) == null) {
         // rest of the async code.
      }
   }
}
Future.forEach follows the similar approach to call the function that returns a Future, and await on it internally.

Who knows, if I change the code to this approach, the problem goes away. Confused | :confused:
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: One commit ago, Dart code worked just fine Pin
Jon McKee31-Jan-20 13:08
professionalJon McKee31-Jan-20 13:08 
GeneralRe: One commit ago, Dart code worked just fine Pin
honey the codewitch31-Jan-20 11:29
mvahoney the codewitch31-Jan-20 11:29 
GeneralRe: One commit ago, Dart code worked just fine Pin
Afzaal Ahmad Zeeshan31-Jan-20 12:27
professionalAfzaal Ahmad Zeeshan31-Jan-20 12:27 
GeneralRe: One commit ago, Dart code worked just fine Pin
Eddy Vluggen31-Jan-20 11:42
professionalEddy Vluggen31-Jan-20 11:42 
GeneralRe: One commit ago, Dart code worked just fine Pin
Afzaal Ahmad Zeeshan31-Jan-20 12:30
professionalAfzaal Ahmad Zeeshan31-Jan-20 12:30 
GeneralRe: One commit ago, Dart code worked just fine Pin
Eddy Vluggen31-Jan-20 12:55
professionalEddy Vluggen31-Jan-20 12:55 
GeneralCloning disks - UEFI hell Pin
charlieg31-Jan-20 8:26
charlieg31-Jan-20 8:26 
GeneralRe: Cloning disks - UEFI hell Pin
Cp-Coder31-Jan-20 8:53
Cp-Coder31-Jan-20 8:53 
GeneralRe: Cloning disks - UEFI hell Pin
charlieg31-Jan-20 9:16
charlieg31-Jan-20 9:16 
GeneralRe: Cloning disks - UEFI hell Pin
Cp-Coder31-Jan-20 9:25
Cp-Coder31-Jan-20 9:25 
GeneralRe: Cloning disks - UEFI hell Pin
charlieg31-Jan-20 10:16
charlieg31-Jan-20 10:16 
GeneralRe: Cloning disks - UEFI hell Pin
Cp-Coder31-Jan-20 11:13
Cp-Coder31-Jan-20 11:13 
GeneralRe: Cloning disks - UEFI hell Pin
Randor 31-Jan-20 9:20
professional Randor 31-Jan-20 9:20 
GeneralRe: Cloning disks - UEFI hell Pin
Mark_Wallace31-Jan-20 10:16
Mark_Wallace31-Jan-20 10:16 
GeneralRe: Cloning disks - UEFI hell Pin
Rick York31-Jan-20 10:28
mveRick York31-Jan-20 10:28 
GeneralRe: Cloning disks - UEFI hell Pin
charlieg31-Jan-20 10:57
charlieg31-Jan-20 10:57 
GeneralRe: Cloning disks - UEFI hell Pin
Rick York31-Jan-20 12:16
mveRick York31-Jan-20 12:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.