core :: Sys :: nanosleep
Returns true if interrupted by a signal.
true
# Wait a specific number of second and nanoseconds # # Returns `true` if interrupted by a signal. fun nanosleep(sec, nanosec: Int): Bool `{ const struct timespec req = {sec, nanosec}; return nanosleep(&req, NULL); `}