-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Browser Module, Embedded Shell
-
None
-
5
For long-running JS like
for (let i = 0; i < 10000; i++) db.test.insertOne({});
pressing Ctrl+C will stop the loop in the mongosh CLI, but not in the embedded shell.
Note that in the mongosh CLI, we check for interruptions before every call: