OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # distutils language = c++ | 5 # distutils language = c++ |
6 | 6 |
7 cimport c_async_waiter | 7 cimport c_async_waiter |
8 cimport c_base | 8 cimport c_base |
9 cimport c_export | 9 cimport c_export |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 self._c_async_waiter = c_base.NewAsyncWaiter() | 51 self._c_async_waiter = c_base.NewAsyncWaiter() |
52 | 52 |
53 def __dealloc__(self): | 53 def __dealloc__(self): |
54 del self._c_async_waiter | 54 del self._c_async_waiter |
55 | 55 |
56 def AsyncWait(self, handle, signals, deadline, callback): | 56 def AsyncWait(self, handle, signals, deadline, callback): |
57 return self._c_async_waiter.AsyncWait(handle, signals, deadline, callback) | 57 return self._c_async_waiter.AsyncWait(handle, signals, deadline, callback) |
58 | 58 |
59 def CancelWait(self, wait_id): | 59 def CancelWait(self, wait_id): |
60 self._c_async_waiter.CancelWait(wait_id) | 60 self._c_async_waiter.CancelWait(wait_id) |
OLD | NEW |