{
  "Id": 45,
  "OrigId": 0,
  "Title": "Pause execution for 5 seconds",
  "LeadParagraph": "Sleep for 5 seconds in current thread, before proceeding with the next instructions.",
  "ExtraKeywords": "delay,defer,stall,busy-waiting,busy-looping,spinning,burn",
  "Author": "programming-idioms.org",
  "CreationDate": "2015-11-30T12:37:29.012Z",
  "LastEditor": "programming-idioms.org",
  "EditSummary": "[C++] \"\"s literal requires using namespace std::chrono_literals;",
  "LastEditedImplID": 1360,
  "OriginalAttributionURL": "",
  "Picture": "",
  "ImageURL": "https://storage.googleapis.com/programming-idioms-pictures/idiom/45/Pause_5s.webp",
  "ImageWidth": 1025,
  "ImageHeight": 160,
  "ImageAlt": "The pedestrian walks, then stays still for 5 seconds, then resumes walking",
  "Version": 103,
  "VersionDate": "2024-09-27T04:13:05.534553Z",
  "Implementations": [
    {
      "Id": 173,
      "OrigId": -1,
      "Author": "programming-idioms.org",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Go",
      "CodeBlock": "time.Sleep(5 * time.Second)",
      "OriginalAttributionURL": "",
      "DemoURL": "http://play.golang.org/p/q_MCP3SHWG",
      "DocumentationURL": "http://golang.org/pkg/time/#Sleep",
      "AuthorComment": "Unit is _Duration, an alias for _int64 representing a number of nanoseconds.\r\nThe constant _Second helps readability.",
      "Version": 2,
      "VersionDate": "2020-11-11T18:12:02.95405Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "import \"time\"",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 174,
      "OrigId": 174,
      "Author": "programming-idioms.org",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "JS",
      "CodeBlock": "setTimeout(function(){\n\t// Instructions after delay\n},5000);",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "https://developer.mozilla.org/en/docs/Web/API/WindowTimers/setTimeout",
      "AuthorComment": "Javascript does not have a _sleep function. This execution flow is structured with a callback (it can be a closure).\r\nUnit is millisecond.",
      "Version": 2,
      "VersionDate": "2023-04-04T12:31:54.662383Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 175,
      "OrigId": 175,
      "Author": "programming-idioms.org",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Java",
      "CodeBlock": "Thread.sleep(5000);",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "Unit is millisecond",
      "Version": 1,
      "VersionDate": "2015-11-30T12:37:29.012454Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 321,
      "OrigId": 321,
      "Author": "Roboticus",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Perl",
      "CodeBlock": "sleep 5;",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "https://perldoc.perl.org/functions/sleep",
      "AuthorComment": "",
      "Version": 2,
      "VersionDate": "2022-08-29T08:23:17.422125Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 436,
      "OrigId": 436,
      "Author": "goran",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "goran",
      "LanguageName": "PHP",
      "CodeBlock": "sleep(5);",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2015-11-30T12:37:29.012454Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 483,
      "OrigId": 483,
      "Author": "benaryorg",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "C",
      "CodeBlock": "usleep(5000000);",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "_usleep argument is in microseconds.\r\nSee : man 3 usleep ",
      "Version": 3,
      "VersionDate": "2017-01-01T22:02:06.025973Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "#include \u003cunistd.h\u003e",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 484,
      "OrigId": 484,
      "Author": "benaryorg",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Rust",
      "CodeBlock": "thread::sleep(time::Duration::from_secs(5));",
      "OriginalAttributionURL": "",
      "DemoURL": "https://replit.com/@ProgIdioms/BraveTransparentPaintprogram#main.rs",
      "DocumentationURL": "https://doc.rust-lang.org/std/thread/fn.sleep.html",
      "AuthorComment": "",
      "Version": 6,
      "VersionDate": "2022-02-21T09:50:42.387594Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "use std::{thread, time};",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 561,
      "OrigId": 561,
      "Author": "bbtemp",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "cctemp",
      "LanguageName": "D",
      "CodeBlock": "Thread.sleep(5.seconds);",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2015-11-30T12:37:29.012454Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "import core.thread;",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 570,
      "OrigId": 570,
      "Author": "JackStouffer",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Python",
      "CodeBlock": "time.sleep(5)",
      "OriginalAttributionURL": "",
      "DemoURL": "https://wandbox.org/permlink/iQ0j6grSeSehH8or",
      "DocumentationURL": "https://docs.python.org/3/library/time.html#time.sleep",
      "AuthorComment": "",
      "Version": 3,
      "VersionDate": "2023-06-13T12:13:12.421352Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "import time",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 616,
      "OrigId": 616,
      "Author": "a14n",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Dart",
      "CodeBlock": "sleep(const Duration(seconds: 5));",
      "OriginalAttributionURL": "",
      "DemoURL": "https://replit.com/@ProgIdioms/ShallowCurlyCheckpoint#main.dart",
      "DocumentationURL": "https://api.flutter.dev/flutter/dart-io/sleep.html",
      "AuthorComment": "_sleep is only available if _dart:_io is available (ie. on server side)\r\n\r\nAttention! sleep stops all asynchronous execution within the whole Isolate, e.g. will stop all updates for the complete Flutter GUI for that time.",
      "Version": 4,
      "VersionDate": "2022-02-23T09:55:55.922248Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "import 'dart:io';",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 725,
      "OrigId": 725,
      "Author": "jc99",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Pascal",
      "CodeBlock": "sleep(5000);",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "https://www.freepascal.org/docs-html/rtl/sysutils/sleep.html",
      "AuthorComment": "Part of the Free Pascal Run-Time Library",
      "Version": 4,
      "VersionDate": "2021-12-07T09:48:50.011068Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "uses SysUtils;",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 727,
      "OrigId": 727,
      "Author": "LRHN",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Dart",
      "CodeBlock": "await new Future.delayed(const Duration(seconds : 5));",
      "OriginalAttributionURL": "",
      "DemoURL": "https://replit.com/@ProgIdioms/DenseImpishExtensions#main.dart",
      "DocumentationURL": "https://api.dart.dev/stable/2.10.4/dart-async/Future/Future.delayed.html",
      "AuthorComment": "Waiting makes sense in asynchronous code. It's not done that often, and there is no simple primitive for it.\r\n\r\nThis will not pause the *thread*, but will delay the rest of the current async function.",
      "Version": 3,
      "VersionDate": "2022-02-23T09:56:08.32286Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "import \"dart:async\";",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 766,
      "OrigId": 766,
      "Author": "programming-idioms.org",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "VB",
      "CodeBlock": "System.Threading.Thread.Sleep(5000)",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2015-11-30T12:37:29.012454Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "System.Threading",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 824,
      "OrigId": 824,
      "Author": "Rome",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "Rome",
      "LanguageName": "Haskell",
      "CodeBlock": "Control.Concurrent.threadDelay 5000000\n",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "http://hackage.haskell.org/package/base/docs/Control-Concurrent.html#v:threadDelay",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2015-11-30T12:37:29.012454Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 830,
      "OrigId": 830,
      "Author": "splattael",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "splattael",
      "LanguageName": "Ruby",
      "CodeBlock": "sleep 5",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "http://ruby-doc.org/core-2.2.3/Kernel.html#method-i-sleep",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2015-11-30T12:37:29.012454Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 908,
      "OrigId": 908,
      "Author": "anonyfox",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Elixir",
      "CodeBlock": "Process.sleep(5000)\n",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "https://hexdocs.pm/elixir/Process.html#sleep/1",
      "AuthorComment": "Sleeps the current process.\r\n\r\nArgument is either the number of milliseconds to sleep as an integer or the atom :_infinity. When :_infinity is given, the current process will suspend forever.",
      "Version": 5,
      "VersionDate": "2019-10-14T12:24:42.533449Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 1067,
      "OrigId": 1067,
      "Author": "elbrujohalcon",
      "CreationDate": "2015-11-30T12:37:29.012454Z",
      "LastEditor": "elbrujohalcon",
      "LanguageName": "Erlang",
      "CodeBlock": "timer:sleep(5000).",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "http://erldocs.com/current/stdlib/timer.html?i=0\u0026search=timer:sle#sleep/1",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2015-11-30T12:37:29.012454Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 1318,
      "OrigId": 1318,
      "Author": "jparoz",
      "CreationDate": "2016-02-16T16:03:35.325048Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Lua",
      "CodeBlock": "local start = os.clock()\nwhile os.clock() - start \u003c 5 do end",
      "OriginalAttributionURL": "",
      "DemoURL": "https://replit.com/@ProgIdioms/OldfashionedAgonizingAfkgaming#main.lua",
      "DocumentationURL": "",
      "AuthorComment": "_Warning: this is busy-looping, which is very inefficient.",
      "Version": 4,
      "VersionDate": "2022-02-23T09:56:37.817452Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 1335,
      "OrigId": 1335,
      "Author": "Smaehtin",
      "CreationDate": "2016-02-16T16:55:51.120525Z",
      "LastEditor": "Smaehtin",
      "LanguageName": "Ada",
      "CodeBlock": "delay 5.0;",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2016-02-16T16:55:51.120525Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 1354,
      "OrigId": 1354,
      "Author": "zehberk",
      "CreationDate": "2016-02-16T17:45:36.126125Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Csharp",
      "CodeBlock": "Thread.Sleep(5000);",
      "OriginalAttributionURL": "",
      "DemoURL": "https://replit.com/@ProgIdioms/GlassPastMenus#main.cs",
      "DocumentationURL": "https://msdn.microsoft.com/en-us/library/system.threading.thread.sleep%28v=vs.110%29.aspx",
      "AuthorComment": "Takes an _int value representing milliseconds.",
      "Version": 3,
      "VersionDate": "2022-03-04T22:43:21.180823Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "using System.Threading;",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 1360,
      "OrigId": 1360,
      "Author": "GhassanPL",
      "CreationDate": "2016-02-16T17:59:47.707404Z",
      "LastEditor": "Minecraft_hyr",
      "LanguageName": "Cpp",
      "CodeBlock": "using namespace std::chrono_literals;\nstd::this_thread::sleep_for(5s);",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "http://en.cppreference.com/w/cpp/thread/sleep_for",
      "AuthorComment": "",
      "Version": 2,
      "VersionDate": "2024-09-27T04:13:05.530494Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "#include \u003cthread\u003e\r\n#include \u003cchrono\u003e",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 1440,
      "OrigId": 1440,
      "Author": "meshelton",
      "CreationDate": "2016-02-16T21:40:15.066666Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Scala",
      "CodeBlock": "Thread.sleep(5000)",
      "OriginalAttributionURL": "",
      "DemoURL": "https://replit.com/@ProgIdioms/ThornyNutritiousVoxel#main.scala",
      "DocumentationURL": "",
      "AuthorComment": "",
      "Version": 2,
      "VersionDate": "2022-03-03T22:51:44.166533Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 1509,
      "OrigId": 1509,
      "Author": "pgon101a",
      "CreationDate": "2016-02-17T13:44:57.663926Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Clojure",
      "CodeBlock": "(Thread/sleep 5000)",
      "OriginalAttributionURL": "",
      "DemoURL": "https://replit.com/@ProgIdioms/FlamboyantOrdinaryDisplaymanager#main.clj",
      "DocumentationURL": "",
      "AuthorComment": "",
      "Version": 2,
      "VersionDate": "2022-03-03T23:11:41.367696Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 2819,
      "OrigId": 2819,
      "Author": "foobar",
      "CreationDate": "2019-09-26T15:37:50.373291Z",
      "LastEditor": "foobar",
      "LanguageName": "Lisp",
      "CodeBlock": "(sleep 5)",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2019-09-26T15:37:50.373291Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 3149,
      "OrigId": 3149,
      "Author": "jupiter",
      "CreationDate": "2019-09-27T00:19:18.915804Z",
      "LastEditor": "jupiter",
      "LanguageName": "Fortran",
      "CodeBlock": "module M_time\ncontains\nsubroutine system_sleep(wait)\nuse,intrinsic :: iso_c_binding, only: c_int\ninteger,intent(in) :: wait\ninteger(kind=c_int):: waited\ninterface\n function c_usleep(msecs) bind (C,name=\"usleep\")\n  import\n  integer(c_int) :: c_usleep\n  integer(c_int),intent(in),VALUE :: msecs\n end function c_usleep\nend interface\n if(wait.gt.0)then\n  waited=c_usleep(int(wait,kind=c_int))\n endif\nend subroutine system_sleep\nend module M_time\nprogram x\nuse M_time\ncall system_sleep(5000000)\nend  ",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "Fortran does not have an intrinsic to pause for a specified time period, but it is relatively easy to create an interface to a POSIX C routine\r\n",
      "Version": 2,
      "VersionDate": "2019-09-27T00:27:09.070797Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 3870,
      "OrigId": 3870,
      "Author": "programming-idioms.org",
      "CreationDate": "2020-04-20T20:11:36.024626Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Java",
      "CodeBlock": "TimeUnit.SECONDS.sleep(5);",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/TimeUnit.html",
      "AuthorComment": "Java 7+",
      "Version": 1,
      "VersionDate": "2020-04-20T20:11:36.024626Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "import java.util.concurrent.TimeUnit;",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 4227,
      "OrigId": 4227,
      "Author": "OC",
      "CreationDate": "2020-10-10T23:01:05.10807Z",
      "LastEditor": "OC",
      "LanguageName": "Obj-C",
      "CodeBlock": "[NSThread sleepForTimeInterval:5.0];",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2020-10-10T23:01:05.10807Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "@import Foundation;",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 4284,
      "OrigId": 4284,
      "Author": "eiko",
      "CreationDate": "2020-10-16T13:33:55.765712Z",
      "LastEditor": "eiko",
      "LanguageName": "Lua",
      "CodeBlock": "os.execute(package.config:sub(1,1) == \"/\" and \"sleep 5\" or \"timeout 5\")",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "http://www.lua.org/manual/5.3/manual.html#pdf-package.config",
      "AuthorComment": "Checks the path delimiter to tell the OS, then executes the appropriate sleep command.",
      "Version": 2,
      "VersionDate": "2020-10-16T13:34:35.159235Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 4323,
      "OrigId": 4323,
      "Author": "Albert He",
      "CreationDate": "2020-11-10T16:29:39.889943Z",
      "LastEditor": "Albert He",
      "LanguageName": "Csharp",
      "CodeBlock": "Task.Delay(5000);",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2020-11-10T16:29:39.889943Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "System.Threading.Tasks;",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 4639,
      "OrigId": 4639,
      "Author": "qd",
      "CreationDate": "2021-04-15T14:34:53.710445Z",
      "LastEditor": "qd",
      "LanguageName": "Kotlin",
      "CodeBlock": "Thread.sleep(5000L)",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2021-04-15T14:34:53.710445Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 4770,
      "OrigId": 4770,
      "Author": "cousinitt",
      "CreationDate": "2021-07-13T04:34:14.512339Z",
      "LastEditor": "cousinitt",
      "LanguageName": "Scheme",
      "CodeBlock": "(sleep 5)",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "https://docs.racket-lang.org/reference/threads.html?q=sleep#%28def._%28%28quote._~23~25kernel%29._sleep%29%29",
      "AuthorComment": "Same as Lisp.",
      "Version": 1,
      "VersionDate": "2021-07-13T04:34:14.512339Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 4820,
      "OrigId": 4820,
      "Author": "Coderunner",
      "CreationDate": "2021-08-15T20:12:54.562745Z",
      "LastEditor": "Coderunner",
      "LanguageName": "C",
      "CodeBlock": "Sleep(5000);",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-sleep",
      "AuthorComment": "",
      "Version": 1,
      "VersionDate": "2021-08-15T20:12:54.562745Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "#include \u003cWindows.h\u003e",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 4905,
      "OrigId": 4905,
      "Author": "Vrganj",
      "CreationDate": "2021-08-16T08:24:50.318157Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "JS",
      "CodeBlock": "const sleep = ms =\u003e new Promise(resolve =\u003e setTimeout(resolve, ms));\n\nawait sleep(5000);\n",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "Can be used only inside an _async function!",
      "Version": 3,
      "VersionDate": "2023-04-04T12:25:14.234967Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 5024,
      "OrigId": 5024,
      "Author": "Patrick R",
      "CreationDate": "2021-09-03T13:33:45.624543Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "Smalltalk",
      "CodeBlock": "5 seconds wait.",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "",
      "AuthorComment": "",
      "Version": 2,
      "VersionDate": "2021-09-06T08:17:51.755586Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 5253,
      "OrigId": 5253,
      "Author": "Klay",
      "CreationDate": "2021-11-26T00:02:25.911236Z",
      "LastEditor": "Klay",
      "LanguageName": "Clojure",
      "CodeBlock": "(\u003c! (timeout 5000))",
      "OriginalAttributionURL": "",
      "DemoURL": "",
      "DocumentationURL": "https://clojuredocs.org/clojure.core.async/timeout",
      "AuthorComment": "Blocks in an asynchronous fashion.",
      "Version": 2,
      "VersionDate": "2021-11-26T00:03:11.922715Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "(require '[clojure.core.async :refer [\u003c!]])",
      "PictureURL": "",
      "Protected": false
    },
    {
      "Id": 6306,
      "OrigId": 6306,
      "Author": "programming-idioms.org",
      "CreationDate": "2023-04-04T12:30:59.973653Z",
      "LastEditor": "programming-idioms.org",
      "LanguageName": "JS",
      "CodeBlock": "await new Promise(r =\u003e setTimeout(r, 5000));",
      "OriginalAttributionURL": "https://stackoverflow.com/a/39914235/871134",
      "DemoURL": "https://stackblitz.com/edit/node-xh7nxp?file=index.js",
      "DocumentationURL": "",
      "AuthorComment": "Can be used only inside an _async function!",
      "Version": 1,
      "VersionDate": "2023-04-04T12:30:59.973653Z",
      "Rating": 0,
      "Checked": false,
      "ImportsBlock": "",
      "PictureURL": "",
      "Protected": false
    }
  ],
  "ImplCount": 36,
  "Rating": 0,
  "WordsTitle": null,
  "Words": null,
  "Checked": false,
  "RelatedIdiomIds": [
    185
  ],
  "RelatedIdiomTitles": [
    "Execute function in 30 seconds"
  ],
  "Protected": false,
  "Variables": null,
  "RelatedURLs": null,
  "RelatedURLLabels": null
}