public void DispatchAfter(DispatchTime when, NSAction action) { if (action == null) { throw new ArgumentNullException("action"); } dispatch_after_f(when.Nanoseconds, handle, (IntPtr)GCHandle.Alloc(Tuple.Create(action, this)), static_dispatch); }
public bool Wait(DispatchTime timeout) { Check(); return(dispatch_group_wait(handle, timeout.Nanoseconds) == 0); }
public DispatchTime(DispatchTime when, TimeSpan delta) : this() { Nanoseconds = dispatch_time(when.Nanoseconds, delta.Ticks * 100); }
public DispatchTime(DispatchTime when, long deltaNanoseconds) : this() { Nanoseconds = dispatch_time(when.Nanoseconds, deltaNanoseconds); }
public void SetTimer(DispatchTime time, long nanosecondInterval, long nanosecondLeeway) { Check(); dispatch_source_set_timer(handle, time.Nanoseconds, nanosecondInterval, nanosecondLeeway); }
public bool Wait (DispatchTime timeout) { Check (); return dispatch_group_wait (handle, timeout.Nanoseconds) == 0; }
public DispatchTime (DispatchTime when, TimeSpan delta) : this () { Nanoseconds = dispatch_time (when.Nanoseconds, delta.Ticks * 100); }
public DispatchTime (DispatchTime when, long deltaNanoseconds) : this () { Nanoseconds = dispatch_time (when.Nanoseconds, deltaNanoseconds); }
public void DispatchAfter (DispatchTime when, NSAction action) { if (action == null) throw new ArgumentNullException ("action"); dispatch_after_f (when.Nanoseconds, handle, (IntPtr) GCHandle.Alloc (Tuple.Create (action, this)), static_dispatch); }
public void SetTimer(DispatchTime time, long nanosecondInterval, long nanosecondLeeway) { Check (); dispatch_source_set_timer (handle, time.Nanoseconds, nanosecondInterval, nanosecondLeeway); }