PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 4th of June, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[18:15:01] <bluezone> https://docs.mongodb.com/manual/reference/method/cursor.forEach/#cursor.forEach
[18:15:23] <bluezone> the callback passed to forEach is being called asynchronously
[18:15:37] <bluezone> why :(
[18:25:32] <GothAlice> bluezone: Why wouldn’t it be? Data retrieval from external networked sources suffers from the most extreme latency during I/O, spending most of the time literally doing nothing, waiting. It’s a perfect problem for async.
[18:26:37] <bluezone> I guess the example confused me
[18:26:48] <bluezone> It doesn't even say that a promise is returned lol
[18:32:37] <bluezone> GothAlice: collection.find().toArray(); is also returning a promise?
[18:32:55] <bluezone> eh
[18:32:57] <bluezone> nevermind
[18:33:07] <bluezone> these docs are annoying me