How Meta Made Debugging Async Code Easier with Coroutines and Senders
…_sr_thunk_task<…> …inject_stop_request_thunk<…>(…_sa_task) () at /home/cppcon/c 5 : auto unifex::connect_awaitable(task , receiver auto&) () at /home/cppcon/cppcon24-async 6 : unifex::task a decltype(auto) …_promise ::await_transform(…) () at /home/cppcon/cppcon24-async-demo/li 13: auto unifex::connect_awaitable(task , receiver auto&) () at /home/cppcon/cppcon24-async 14: main () at /home/cpp …inject_stop_request_thunk<…>(…_sa_task ) () at task.hpp:824 5 : auto unifex::connect_awaitable(task , receiver auto&) () at connect_awaitable.hpp:234 6 : unifex::task async_main<…>(span , auto& 0 码力 | 131 页 | 907.41 KB | 5 月前3A Case-study in Rewriting a Legacy GUI Library for Real-time Audio Software in Modern C++
kUIntProp, 4); // ... iZotope Inc.// Button.cpp Button::Button() { GetPropSignal(kText).Connect(this, [] { optional text = GetProperty (kText); assert(text); SetNeedsLayout(); GetPropSignal (kBGColor).Connect(this, update); GetPropSignal (kBorderColor).Connect(this,update); iZotope Inc.// Button.cpp Button::Button() { GetPropSignal (kText).Connect(this, [] { optional GetPropSignal (kBGColor).Connect(this, update); GetPropSignal (kBorderColor).Connect(this,update); iZotope Inc.// Button.cpp Button::Button() { GetPropSignal (kText).Connect(this, [] { optional 0 码力 | 138 页 | 2.75 MB | 5 月前3Working with Asynchrony Generically: A Tour of C++ Executors
BASIC LIFETIME OF AN ASYNC OPERATION SCHEDULER schedule SENDER RECEIVER OPERATION STATE connect start …operation completes… … and notifies receiver … time passes… Implementation details BUILDING BLOCKS OF P2300 concept scheduler: schedule(scheduler) sender; concept sender: connect(sender, receiver) operation_state; concept receiver: set_value(receiver, Values...) void; start(operation_state) void;24 Under the hood of a concurrent operation25 ALL OF THESE SENDERS IMPLEMENT CONNECT ex::sender auto work = ex::when_all( ex::schedule(sched) | ex::then([] { return compute_intensive(0);0 码力 | 121 页 | 7.73 MB | 5 月前3TiDB v8.5 Documentation
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 273 4.4 Connect to TiDB · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ORM · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 345 4.4.3 Connect to TiDB · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · traffic replay (experimental) #642 @djshow832 Starting from TiProxy v1.3.0, you can use tiproxyctl to connect to the TiProxy instance, capture access traffic in a TiDB production cluster, and replay it in a0 码力 | 6730 页 | 111.36 MB | 9 月前3TiDB v8.4 Documentation
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 268 4.4 Connect to TiDB · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ORM · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 340 4.4.3 Connect to TiDB · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · traffic replay (experimental) #642 @djshow832 Starting from TiProxy v1.3.0, you can use tiproxyctl to connect to the TiProxy instance, capture access traffic in a TiDB production cluster, and replay it in a0 码力 | 6705 页 | 110.86 MB | 9 月前3TiDB v8.3 Documentation
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 246 4.4 Connect to TiDB · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ORM · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 318 4.4.3 Connect to TiDB · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · primary node will automatically bind to the specified virtual IP, ensuring that clients can always connect to an available TiProxy through the virtual IP. 41 To enable virtual IP management, specify the0 码力 | 6606 页 | 109.48 MB | 9 月前3TiDB v8.2 Documentation
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 243 4.4 Connect to TiDB · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ORM · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 315 4.4.3 Connect to TiDB · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · cluster: CLUSTER START SUCCESSFULLY, Enjoy it ^-^ To connect TiDB: mysql --comments --host 127.0.0.1 --port 4001 -u �→ root -p (no password) To connect TiDB: mysql --comments --host 127.0.0.1 --port 40000 码力 | 6549 页 | 108.77 MB | 9 月前3TiDB v8.1 Documentation
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 243 4.4 Connect to TiDB · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ORM · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 315 4.4.3 Connect to TiDB · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · cluster: CLUSTER START SUCCESSFULLY, Enjoy it ^-^ To connect TiDB: mysql --comments --host 127.0.0.1 --port 4001 -u �→ root -p (no password) To connect TiDB: mysql --comments --host 127.0.0.1 --port 40000 码力 | 6479 页 | 108.61 MB | 9 月前3Tornado 6.5 Documentation
Client-side support tornado.websocket.websocket_connect(url: str | HTTPRequest, callback: Callable[[Future[WebSocketClientConnection]], None] | None = None, connect_timeout: float | None = None, on_message_callback: yield websocket_connect(url) while True: msg = yield conn.read_message() if msg is None: break # Do something with msg In the callback style, pass an on_message_callback to websocket_connect. In both styles WebSocket client connection. This class should not be instantiated directly; use the websocket_connect function instead. close(code: int | None = None, reason: str | None = None) → None Closes the websocket0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
WebSocketHandler.ping() WebSocketHandler.on_pong() WebSocketClosedError Client-side support websocket_connect() WebSocketClientConnection WebSocketClientConnection.close() WebSocketClientConnection.write_message() on a closed connection. Added in version 3.2. Client-side support tornado.websocket.websocket_connect(url: str [https://docs.python.org/3/library/stdtypes.html#str] | HTTPRequest, callback: Callable org/3/library/constants.html#None]] | None [https://docs.python.org/3/library/constants.html#None] = None, connect_timeout: float[https://docs.python.org/3/library/functions.html#float] | None [https://docs.python0 码力 | 437 页 | 405.14 KB | 2 月前3
共 129 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13