Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Created by Guest
Created on Aug 6, 2024

Call Functions In Background

Currently, if you call a function for example function_1 from a separate function function_2. Function_2 will wait for function_1 to execute and return before continuing. We have a function that we'd like to use to execute a different function with different parameters, however, the first function has to wait for each function to finish executing before it can call the next one. The first function times out before it can be completed. For example: function_1: loop through items in a collection and call function_2 in a loop function_2: Some long-running function that takes a while to complete