Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-482

Add sleep(x) to ShellApi object

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.7.7
    • Affects Version/s: None
    • Component/s: Shell API
    • 1
    • Iteration Star Apple
    • Needed
    • Hide

      sleep will be a blocking function (i.e. work like it does in the old shell)

      Show
      sleep will be a blocking function (i.e. work like it does in the old shell)

      Since there's no top-level await in the shell, if someone wants to have a blocking sleep call we need to implement it with returnsPromise so it actually blocks.

       

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: