Aug-22-2021, 07:20 AM
(Aug-21-2021, 08:35 PM)samuelbachorik Wrote: Hi i want to ask you what is the difference betwen map() and submit()
map() can be very convenient because you get the actual result from it rather than have to process a collection of future objects. Often this is sufficient.
What you lose from it is that the results must be returned in order. Most of the time that's fine, but there are some situations where you'd rather have the flexibility of being able to process in completion order instead. Also, any exceptions thrown by any child will stop the entire map(). If you want to process the data from the ones without exceptions, you need to work with the future objects yourself.