Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Moddable-OpenSource/moddable
/ fx_agent_sleep
Function
fx_agent_sleep
xs/tools/xst.c:645–653 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
643
}
644
645
void fx_agent_sleep(xsMachine* the)
646
{
647
xsIntegerValue delay = xsToInteger(xsArg(0));
648
#if mxWindows
649
Sleep(delay);
650
#else
651
usleep(delay * 1000);
652
#endif
653
}
654
655
void fx_agent_start(xsMachine* the)
656
{
Callers
nothing calls this directly
Calls
1
Sleep
Class · 0.85
Tested by
no test coverage detected