MonoMac.CoreFoundation.DispatchQueue.DispatchSync C# (CSharp) Method

DispatchSync() public method

public DispatchSync ( NSAction action ) : void
action NSAction
return void
        public void DispatchSync(NSAction action)
        {
            if (action == null)
                throw new ArgumentNullException ("action");

            dispatch_sync_f (handle, (IntPtr) GCHandle.Alloc (action), static_dispatch);
        }

Usage Example

コード例 #1
0
 public override void Send(SendOrPostCallback d, object state)
 {
     queue.DispatchSync(() => d(state));
 }