Comprehensive Rust(日语) 202412AsyncWriteExt, DuplexStream}; 361 struct LinesReader { stream: DuplexStream, } impl LinesReader { fn new(stream: DuplexStream) -> Self { Self { stream } } async fn next(&mut self) -> io::Result0 码力 | 381 页 | 1.36 MB | 10 月前3
JavaScript Promiseの本 v1このメソッドチェーンと非同期処理を見てNode.jsに慣れている方は Stream88 が思い浮 かぶと思います。 Stream89 を使うと、 this.lastValue のような値を保持する必要がなくなることや大きな ファイルの扱いが改善されます。 また、Promiseを使った例に比べるとより高速に処理でき る可能性が高いと思います。 streamによるread→transform→write readableStream http://nodejs.org/api/stream.html 89 http://nodejs.org/api/stream.html 98 JavaScript Promiseの本 Node.jsのStreamはEventをベースにしている技術 Node.jsのStreamについて詳しくは以下を参照して下さい。 • Node.js の Stream API で「データの流れ」を扱う方法 で「データの流れ」を扱う方法 - Block Rockin’ Codes90 • Stream2の基本91 • Node-v0.12の新機能について92 Promiseラッパー 話を戻してfs-method-chain.jsとPromise版の両者を比べると、 内部的にもかなり似てい て、同期版のものがそのまま非同期版でも使えるような気がします。 JavaScriptでは動的にメソッドを定義することもできるため、 自動的にPromise版を生成0 码力 | 115 页 | 1.06 MB | 1 年前3
JavaScript Promiseの本 v2このメソッドチェーンと非同期処理を見てNode.jsに慣れている方は Stream98 が思い浮 かぶと思います。 Stream99 を使うと、 this.lastValue のような値を保持する必要がなくなることや大きな ファイルの扱いが改善されます。 また、Promiseを使った例に比べるとより高速に処理でき る可能性が高いと思います。 streamによるread→transform→write readableStream 目的と状況にあった実装 をしていくことを考えていくべきでしょう。 Node.jsのStreamはEventをベースにしている技術 Node.jsのStreamについて詳しくは以下を参照して下さい。 • Node.js の Stream API で「データの流れ」を扱う方法 - Block Rockin’ Codes100 • Stream2の基本101 • Node-v0.12の新機能について102 98 http://nodejs.org/api/stream.html 99 http://nodejs.org/api/stream.html 100 http://jxck.hatenablog.com/entry/20111204/1322966453 101 http://www.slideshare.net/shigeki_ohtsu/stream2-kihon 102 http://www0 码力 | 137 页 | 1.17 MB | 1 年前3
PlantUML 1.2019.6 言語リファレンスガイドimpact at all on the diagram itself. However, those logs are printed in the command line's output stream. This could be useful for debug purpose. @startuml !function bold($text) !$result = ""+ $text "Trip Data", "PK: Medallion HackLicense VendorId; 3 TUs") AzureStreamAnalytics(streamAnalytics, "Stream Processing", "6 SUs") AzureCosmosDb(outputCosmosDb, "Output Database", "1,000 RUs") devices -->0 码力 | 174 页 | 1.99 MB | 1 年前3
PlantUML 1.2019.9 言語リファレンスガイドimpact at all on the diagram itself. However, those logs are printed in the command line's output stream. This could be useful for debug purpose. @startuml !function bold($text) !$result = ""+ $text "Trip Data", "PK: Medallion HackLicense VendorId; 3 TUs") AzureStreamAnalytics(streamAnalytics, "Stream Processing", "6 SUs") AzureCosmosDb(outputCosmosDb, "Output Database", "1,000 RUs") devices -->0 码力 | 175 页 | 2.02 MB | 1 年前3
PlantUML 1.2020.23 言語リファレンスガイドimpact at all on the diagram itself. However, those logs are printed in the command line's output stream. This could be useful for debug purpose. @startuml !function bold($text) !$result = ""+ $text "Trip Data", "PK: Medallion HackLicense VendorId; 3 TUs") AzureStreamAnalytics(streamAnalytics, "Stream Processing", "6 SUs") AzureCosmosDb(outputCosmosDb, "Output Database", "1,000 RUs") devices -->0 码力 | 306 页 | 3.19 MB | 1 年前3
PlantUML を使った UML の描き方 - PlantUML 言語リファレンスガイド(Version 1.2020.22)impact at all on the diagram itself. However, those logs are printed in the command line's output stream. This could be useful for debug purpose. @startuml !function bold($text) !$result = ""+ $text "Trip Data", "PK: Medallion HackLicense VendorId; 3 TUs") AzureStreamAnalytics(streamAnalytics, "Stream Processing", "6 SUs") AzureCosmosDb(outputCosmosDb, "Output Database", "1,000 RUs") devices -->0 码力 | 294 页 | 3.11 MB | 1 年前3
PlantUML を使った UML の描き方 - PlantUML 言語リファレンスガイド(Version 1.2021.1)impact at all on the diagram itself. However, those logs are printed in the command line’s output stream. This could be useful for debug purpose. @startuml !function bold($text) !$result = ""+ $text "Trip Data", "PK: Medallion HackLicense VendorId; 3 TUs") AzureStreamAnalytics(streamAnalytics, "Stream Processing", "6 SUs") AzureCosmosDb(outputCosmosDb, "Output Database", "1,000 RUs") devices -->0 码力 | 393 页 | 4.27 MB | 1 年前3
PlantUML を使った UML の描き方 - PlantUML 言語リファレンスガイド(Version 1.2021.2)impact at all on the diagram itself. However, those logs are printed in the command line’s output stream. This could be useful for debug purpose. @startuml !function bold($text) !$result = ""+ $text "Trip Data", "PK: Medallion HackLicense VendorId; 3 TUs") AzureStreamAnalytics(streamAnalytics, "Stream Processing", "6 SUs") AzureCosmosDb(outputCosmosDb, "Output Database", "1,000 RUs") devices -->0 码力 | 399 页 | 4.33 MB | 1 年前3
PlantUML 1.2021.3 言語リファレンスガイドimpact at all on the diagram itself. However, those logs are printed in the command line’s output stream. This could be useful for debug purpose. @startuml !function bold($text) !$result = ""+ $text "Trip Data", "PK: Medallion HackLicense VendorId; 3 TUs") AzureStreamAnalytics(streamAnalytics, "Stream Processing", "6 SUs") AzureCosmosDb(outputCosmosDb, "Output Database", "1,000 RUs") devices -->0 码力 | 412 页 | 4.46 MB | 1 年前3
共 13 条
- 1
- 2













