calendar.threads: simplify.
parent
6f87c2afc7
commit
94e9563a15
|
|
@ -1,7 +1,6 @@
|
||||||
! Copyright (C) 2011 Slava Pestov.
|
! Copyright (C) 2011 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: calendar math system threads ;
|
USING: calendar threads ;
|
||||||
IN: calendar.threads
|
IN: calendar.threads
|
||||||
|
|
||||||
M: duration sleep
|
M: duration sleep duration>nanoseconds sleep ;
|
||||||
duration>nanoseconds >integer nano-count + sleep-until ;
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue