-
-
Save RX14/5d49469dbe6fc0c65446d79f0427be89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add(timeout : LibC::Timeval? = nil) | |
if timeout_copy = timeout | |
LibEvent2.event_add(@event, pointerof(timeout_copy)) | |
else | |
LibEvent2.event_add(@event, nil) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment