Add Sleep API to redbean (#220)

This commit is contained in:
Paul Kulchenko 2021-08-02 14:53:24 -07:00 committed by GitHub
parent 64d87d4e5a
commit f7b4804251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -864,6 +864,10 @@ FUNCTIONS
Slurp(filename:str) → str
Reads file data from local file system.
Sleep(seconds:number)
Sleeps the specified number of seconds (can be fractional). The
smallest interval is a millisecond.
Route([host:str,[path:str]])
Instructs redbean to follow the normal HTTP serving path. This
function is useful when writing an OnHttpRequest handler, since