C++20: An (Almost) Complete OverviewC++20: An (Almost) Complete Overview September 15th 2020 Marc Grégoire Software Architect marc.gregoire@nikon.com2 Marc Grégoire Belgium Software architect for Nikon Metrology Microsoft0 码力 | 85 页 | 512.18 KB | 6 月前3
Working with Asynchrony Generically: A Tour of C++ Executorswhich returns new sender. when_all(senders...) → sender … completes when all the input senders complete. on(scheduler, sender) → sender … starts the input sender in the context of the input scheduler pool picks up the work and executes it Inner-most receiver is notified that the work is complete35 OPERATIONS EXECUTE OUTSIDE-IN when_all then schedule Every adaptor has a chance to run auto compute = [=](int i) -> unifex::task{ co_await ex::schedule(sched) | unifex::complete_inline(); co_return compute_intensive(i); }; ex::sender auto work = ex::when_all(compute(0) 0 码力 | 121 页 | 7.73 MB | 6 月前3
websockets Documentation
Release 5.0connect(uri) as websocket: await websocket.send("Hello world!") asyncio.get_event_loop().run_until_complete( hello('ws://localhost:8765')) And here’s an echo server: #!/usr/bin/env python import asyncio async for message in websocket: await websocket.send(message) asyncio.get_event_loop().run_until_complete( websockets.serve(echo, 'localhost', 8765)) asyncio.get_event_loop().run_forever() Do you like {greeting}") start_server = websockets.serve(hello, 'localhost', 8765) asyncio.get_event_loop().run_until_complete(start_server) asyncio.get_event_loop().run_forever() On the server side, websockets executes the0 码力 | 56 页 | 245.43 KB | 1 年前3
websockets Documentation
Release 6.0connect(uri) as websocket: await websocket.send("Hello world!") asyncio.get_event_loop().run_until_complete( hello('ws://localhost:8765')) And here’s an echo server: #!/usr/bin/env python import asyncio async for message in websocket: await websocket.send(message) asyncio.get_event_loop().run_until_complete( websockets.serve(echo, 'localhost', 8765)) asyncio.get_event_loop().run_forever() Do you like {greeting}") start_server = websockets.serve(hello, 'localhost', 8765) asyncio.get_event_loop().run_until_complete(start_server) asyncio.get_event_loop().run_forever() On the server side, websockets executes the0 码力 | 58 页 | 253.08 KB | 1 年前3
Guzzle PHP 5.3 Documentation(blocking) requests when the future request option is not speci- fied. This means that the request will complete immediately, and if an error is encountered, a GuzzleHttp\Exception\RequestException will be thrown event listeners to add to each request’s before event. • complete: Callable or array representing the event listeners to add to each request’s complete event. • error: Callable or array representing the event Callable or array representing the event listeners to add to each request’s end event. The “before”, “complete”, “error”, and “end” event options accept a callable or an array of associative arrays where each0 码力 | 63 页 | 275.75 KB | 11 月前3
Guzzle PHP 5.3 Documentation(blocking) requests when the future request option is not specified. This means that the request will complete immediately, and if an error is encountered, a GuzzleHttp\Exception\RequestException will be thrown event listeners to add to each request’s before event. complete: Callable or array representing the event listeners to add to each request’s complete event. error: Callable or array representing the event Callable or array representing the event listeners to add to each request’s end event. The “before”, “complete”, “error”, and “end” event options accept a callable or an array of associative arrays where each0 码力 | 72 页 | 312.62 KB | 11 月前3
websockets Documentation
Release 4.0connect(uri) as websocket: await websocket.send("Hello world!") asyncio.get_event_loop().run_until_complete( hello('ws://localhost:8765')) And here’s an echo server: #!/usr/bin/env python import asyncio async for message in websocket: await websocket.send(message) asyncio.get_event_loop().run_until_complete( websockets.serve(echo, 'localhost', 8765)) asyncio.get_event_loop().run_forever() Do you like format(greeting)) start_server = websockets.serve(hello, 'localhost', 8765) asyncio.get_event_loop().run_until_complete(start_server) asyncio.get_event_loop().run_forever() On the server side, the handler coroutine0 码力 | 48 页 | 224.70 KB | 1 年前3
websockets Documentation
Release 9.0await websocket.send("Hello world!") await websocket.recv() asyncio.get_event_loop().run_until_complete(hello()) And here’s an echo server: #!/usr/bin/env python import asyncio import websockets async send(message) start_server = websockets.serve(echo, "localhost", 8765) asyncio.get_event_loop().run_until_complete(start_server) asyncio.get_event_loop().run_forever() Do you like it? Let’s dive in! CONTENTS 1 page) start_server = websockets.serve(hello, "localhost", 8765) asyncio.get_event_loop().run_until_complete(start_server) asyncio.get_event_loop().run_forever() On the server side, websockets executes the0 码力 | 81 页 | 352.88 KB | 1 年前3
Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2023.11)definition, like any other commands, PlantUML Language Reference Guide (1.2023.11) 55 / 550 2.14 Complete example 2 USE CASE DIAGRAM • In an included file, • In a configuration file, provided in the command application) as (Use) << Main >> User -> (Start) User --> (Use) MySql --> (Use) @enduml 2.14 Complete example @startuml left to right direction skinparam packageStyle rectangle actor customer actor roundBox skinparam activityShape octagon (*) --> "First Action" "First Action" --> (*) @enduml 5.12 Complete example @startuml title Servlet Container (*) --> "ClickServlet.handleRequest()" --> "new Page"0 码力 | 551 页 | 7.79 MB | 1 年前3
Spring Boot 1.3.0.M2 Reference Documentationinstalled, you can simply hit ctrl-space in the POM editor and type “spring-boot-starter” for a complete list. Third party starters should not start with spring-boot-starter as it is reserved for official the box. JVM hot swapping is somewhat limited with the bytecode that it can replace, for a more complete solution JRebel or the Spring Loaded project can be used. The spring-boot-devtools module also includes spring-boot-devtools module will automatically apply sensible development-time configuration. Tip For a complete list of the properties that are applied see DevToolsPropertyDefaultsPostProcessor. Automatic restart0 码力 | 453 页 | 414.34 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













