Driver For GoLang Async Queries

Hi, The mongo Java driver has “Going Async with Callbacks”.

Is there a similar Mongo Driver implementation for Go? Could you please point to the link?

I am assuming that the go driver provided bulkWrite() return only after a successful write to the Mongod Server.

you can use goroutines to achieve what you want

go func() {
    // do other stuff on completion
} ()

Also, please note that I am not from the MongoDB Support, just a regular user.

A piece of advice: in general, avoid callbacks

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.