os.cancelAlarm
The Alarm event will not be fired when the alarm triggers after calling this function.
| os.cancelAlarm Function | |
|---|---|
|
Syntax os.cancelAlarm(
| |
| Returns | nil |
| API | os |
| Source | CC:Tweaked (source) |
Stops a Alarm.
You can set a alarm with with os.setAlarm.
|
|||
| Starts a Alarm for 5 seconds, then stops it after 3 seconds. | |||
| Code | <nowiki>
local Id = os.setAlarm(5)
sleep(3)
os.cancelAlarm(Id)
</nowiki>
|
||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.