Skip to content

Instantly share code, notes, and snippets.

@RX14

RX14/event.cr Secret

Created August 20, 2017 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RX14/5d49469dbe6fc0c65446d79f0427be89 to your computer and use it in GitHub Desktop.
Save RX14/5d49469dbe6fc0c65446d79f0427be89 to your computer and use it in GitHub Desktop.
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