Hi, The mongo Java driver has “Going Async with Callbacks”. MongoDB Async Driver.
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() {
collection.BulkWrite()
// 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
system
(system)
Closed
3
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.