並び順

ブックマーク数

期間指定

  • から
  • まで

241 - 276 件 / 276件

新着順 人気順

asyncの検索結果241 - 276 件 / 276件

  • for文、forEach文のループ処理でasync/await、Promise.allを効果的に使う方法 - ブロックチェーンエンジニアの備忘録

    HOMENode.jsfor文、forEach文のループ処理でasync/await、Promise.allを効果的に使う方法

      for文、forEach文のループ処理でasync/await、Promise.allを効果的に使う方法 - ブロックチェーンエンジニアの備忘録
    • 短時間のミーティングとメールの代替を目指して——NYCの連続起業家が作るAIソフトウェア「Async」 - BRIDGE(ブリッジ)テクノロジー&スタートアップ情報

      Async のデモ Image credit: Async ボイスメッセージは、私たちの脳にとって最も自然なコミュニケーション方法だ。 Abehassera 氏は、ボイスメッセージングツール「Async」を開発した。Async は、Gmail や Outlook の音声対応版のようなもので、すべてが音声で配信され、ユーザは自分のボイスメールアドレスを持つことができる。Abehassera 氏は、これが短時間の会議に取って代わり、労働者がより効率的な方法で議論できるようになることを期待している。 もう会議の時間を気にしなくていい Async の共同設立者兼 CEO Ilan Abehassera 氏 リモートミーティングは日常茶飯事だが、Abehassera 氏はその一部を WhatsApp を使ったボイスメッセージに置き換えることに慣れてきた。 Abehassera 氏は、ボイスメッセージ

        短時間のミーティングとメールの代替を目指して——NYCの連続起業家が作るAIソフトウェア「Async」 - BRIDGE(ブリッジ)テクノロジー&スタートアップ情報
      • JavaScriptのPromiseやAsync/Awaitがよくわからないのですが内部的にはタイマーなどで処理が終わるのを監視しているのでしょうか? - Quora

        問題が発生しました。しばらくしてから、もう一度お試しください。 再度お試しください

        • 【JS】async/await構文で書いたFetch APIからJSONデータを読み込む - クモのようにコツコツと

          以前、Fetch APIでJSONデータを読み込みました。この時はthen()で処理を繋ぐ書き方をしていました。async/await構文で書くこともできて、そちらの方がよく使われているとのことで、処理を書き換えてみました。それではいきましょう! 【目次】 async/await構文 API通信はthen()よりasync/await構文 then()の書き方 async/await構文の書き方 then()を使ったFetch API Promiseを読み込む 作ったもの JSコード コンソール確認 PromiseとFetch()とasync/await Promiseとは Fetch()メソッドでPromiseが返される async/await構文 async/await構文のレスポンス 作ったもの JSコード コンソール確認 async/awaitで取得したJSONデータを処理する 作

            【JS】async/await構文で書いたFetch APIからJSONデータを読み込む - クモのようにコツコツと
          • Node.jsで終了ステータスコードを使うなら押さえておきたいasyncと終了ステータスコードの話 - Qiita

            概要 Node.jsに限らず、ローカル実行向けのプログラムと作っていると、度々コマンドをチェーンして実行する必要が出てきます。 その際、処理を実行していいかの判断には、終了ステータスコードを利用すると思います。 そんな終了ステータスコードが、現状async functionだと想定外の動作になっており、やらかしそうになった話です。 読者対象 Node.jsでローカル実行向けプログラムを作成し、コマンドをチェーン実行する方。 lesson 前提 npm startを実行し、index.jsで例外を発生させ、badend.jsが実行されないことを確認していきます。 { "name": "asyncexit", "description": "exit status of code", "scripts": { "start": "node index.js && node badend.js"

              Node.jsで終了ステータスコードを使うなら押さえておきたいasyncと終了ステータスコードの話 - Qiita
            • Async/Await for AVR with Rust

              Async/Await for AVR with RustJuly 25, 2020 · Updated July 26, 2020 · 16 min read With the recent ability for Rust to compile for AVR microcontrollers, I thought that it's time for me to bring my favorite feature of Rust to Arduino: async/await. TL;DR: final code is at https://github.com/lights0123/async-avr. Here's an example of a simple task that does two things at once. Introduction The age-old

                Async/Await for AVR with Rust
              • socketry/asyncめも - Qiita

                puppeteer-rubyっていうライブラリを作っているときに、WebSocketのコールバック順序がぐちゃぐちゃになる事象に嫌気がさして、WebSocketの代替実装を探していたところ、 (ぜんぜんWebSocketではないがw)asyncという面白そうなライブラリを見つけたのでメモ。 複数のタスクを待ち合わせる require 'async' def do_task(name) Async do |task| puts "start task - #{name}" task.sleep(name.to_i) puts "end task - #{name}" name end end def all_task(*args) Async do |task| puts "start tasks - #{args}" values = args.map do |arg| do_task(a

                  socketry/asyncめも - Qiita
                • GitHub - Iceber/iouring-go: Provides easy-to-use async IO interface with io_uring

                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                    GitHub - Iceber/iouring-go: Provides easy-to-use async IO interface with io_uring
                  • How async/await works internally in Swift

                    async/await in Swift was introduced with iOS 15, and I would guess that at this point you probably already know how to use it. But have you ever wondered how async/await works internally? Or maybe why it looks and behaves the way it does, or even why was it even introduced in the first place? In typical SwiftRocks fashion, we're going deep into the Swift compiler to answer these and other question

                      How async/await works internally in Swift
                    • Explaining the internals of async-task from the ground up

                      async-task is one of the most complicated crates in the smol ecosystem. But, fundamentally, it’s just a future on the heap. I pride myself on smol packages being very easy to parse for anyone with a beginner’s level of experience in Rust. By that I mean, if you want to know how smol works, it should be very easy to pick up the source code, read through it, and understand how each individual part w

                        Explaining the internals of async-task from the ground up
                      • [JavaScript] この先生きのこるための async/await 入門

                        Webプログラマーはもう JavaScript を避けて通ることができないようです。 今回は ES2017 で新たに登場した async / await 構文について理解するために記事を書きました。 簡単に言うと これらは Promise オブジェクトをうまく扱うための仕組みです。 Promiseこれ を知らないことには async, await は理解できません。 かんたんに言うと Promise は 非同期処理の結果が格納されたオブジェクトです。 普段は fetch 等の リクエストを実行するような関数が Promise を返却するので生で触ることはあまり多くありませんが、 この記事では多用していきます 💪 Promise オブジェクトの作成は 第一引数で受け取った関数を実行するような関数を Promise に渡してあげるだけです。 うーん、余計難しくなってしまいました。 たとえば

                          [JavaScript] この先生きのこるための async/await 入門
                        • How can I use async/await at the top level?

                          I have been going over async/await and after going over several articles, I decided to test things myself. However, I can't seem to wrap my head around why this does not work: async function main() { var value = await Promise.resolve('Hey there'); console.log('inside: ' + value); return value; } var text = main(); console.log('outside: ' + text); The console outputs the following (node v8.6.0) : >

                            How can I use async/await at the top level?
                          • Node.js googleapis npmパッケージで Google スプレッドシートを await/async で読み取るメモ

                            Node.js googleapis npmパッケージで Google スプレッドシートを await/async で読み取るメモ Node.js googleapis npmパッケージで Google スプレッドシートを await/async で読み取るメモです。 背景 実は、Node.js で Google スプレッドシートを取得する知識。GoogleのAPIバージョンの変遷もあって、自分の中で結構フワッとしていたんですが、大好きな Node-RED で node-red-contrib-google-sheets というGoogle スプレッドシートを読み込めるノードがあり、Node.jsとしてもとても勉強になりました。 node-red-contrib-google-sheets/gsheet.js at master · sammachin/node-red-contrib-g

                              Node.js googleapis npmパッケージで Google スプレッドシートを await/async で読み取るメモ
                            • Debugging async generator errors in Rust

                              My colleague Matt Jibson and I recently found ourselves in the unfortunate situation of debugging this hefty async/await-related error from the Rust compiler: error[E0277]: `(dyn futures::Stream<Item = std::result::Result<std::vec::Vec<repr::Row>, comm::Error>> + std::marker::Send + std::marker::Unpin + 'static)` cannot be shared between threads safely --> src/materialized/src/mux.rs:138:100 | 138

                              • async/awaitで非同期処理の完了を待つ - Qiita

                                const 関数名 = async () => { const message = 'GitのユーザーIDは'; const url = 'https://api.github.com/users/taizo-pro' // jsonにreturnされた値が入る const json = await fetch(url) .then(res => { console.log('非同期処理成功時のメッセージです') return res.json() }).catch(error => { console.error('非同期処理失敗時のメッセージです。', error) return null }); const username = json.login; console.log(message + username) } 関数名()

                                  async/awaitで非同期処理の完了を待つ - Qiita
                                • JMSJobQueueBundleユーザーのためのMessengerコンポーネント移行ガイド(Symfony4時代のasyncジョブ実行入門) | QUARTETCOM TECH BLOG

                                  JMSJobQueueBundleユーザーのためのMessengerコンポーネント移行ガイド(Symfony4時代のasyncジョブ実行入門) SymfonyでWebアプリケーションを作るとき、HTTPリクエストから直接実行するには重い処理があったらどうするか? 以前の記事 でも書いた通り、非同期処理を実装することが多いですね。 Symfony2時代の非同期処理のスタンダードは JMSJobQueueBundle でした。 JMSJobQueueBundleも一応Symfony4に対応してくれたのですが、不具合があって利用できない時期が長く、メンテナーの方が忙しいようでプルリクエストへの返信も遅れがちでした。乗り換え先をどれにするのが良いかTwitterで聞いてみたところ、 Symfony\Component\Messenger を使うと良いよというアドバイスをもらい、使ってみたらとても良

                                    JMSJobQueueBundleユーザーのためのMessengerコンポーネント移行ガイド(Symfony4時代のasyncジョブ実行入門) | QUARTETCOM TECH BLOG
                                  • Unityの機能をawait可能にしてasync / awaitについて学ぶ

                                    概要 C#では非同期処理として async / await の仕組みが用意されています。しかし実はこの機能、コンパイラによってコードが変更され、コールバックという形に変換されて動作するようになっているのです。そのため、知らずに使っていると思わぬところでハマったり、エラーになってしまったり、といったことが起きえます。 今回はそんな async / await の機能の内部を探りながら、最後はUnityの機能を拡張する実装を通して非同期処理を理解していこうと思います。 安原さんと名雪さんのスライドがとても分かりやすく参考になるので、こちらもぜひ読んでみてください。 非同期処理の挙動を確認する 細かい内容に入っていく前に、しっかりと把握していないとどういうことが起きるのかということを確認しておきましょう。 上のスライドにも書かれている以下のメソッドを実行するとどうなるでしょうか? using S

                                      Unityの機能をawait可能にしてasync / awaitについて学ぶ
                                    • nodejs v12(LTS)におけるasync, awaitを用いたstream処理 - Qiita

                                      QualiArts Advent Calendar 2019、3日目の記事になります。 はじめに 2019年10月21日にnodejs v12のLTS版が公開されました。 nodeは奇数バージョンが開発版、偶数バージョンが安定版となるため、v11以降の今まで実プロジェクトだと利用しにくかった機能がこれによりいくつか使えるようになりました。 そのなかでもasync-generatorsやfor-await-of loops構文が大手を振って使えるようになったことにより、stream関連の処理が大きく変わると感じたため、すでにいくつか紹介されている記事も有りますが、この機会に改めて紹介したいと思います。 また、最後に簡単なサンプル処理も記述しているので、ご参考いただければ幸いです。 for-await-of loops 今までstreamはeventEmitterを利用し、発火したeventを

                                        nodejs v12(LTS)におけるasync, awaitを用いたstream処理 - Qiita
                                      • GitHub - rbatis/rbatis: Rust Compile Time ORM robustness,async, pure Rust Dynamic SQL

                                        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                          GitHub - rbatis/rbatis: Rust Compile Time ORM robustness,async, pure Rust Dynamic SQL
                                        • HTTP status codes with async Rust - FP Complete

                                          This blog post is a direct follow up on my previous blog post on different levels of async in Rust. You may want to check that one out before diving in here. Alright, so now we know that we can make our programs asynchronous by using non-blocking I/O calls. But last time we only saw examples that remained completely sequential, defeating the whole purpose of async. Let’s change that with something

                                            HTTP status codes with async Rust - FP Complete
                                          • 小学生でもわかるasync/await/Promise入門【JavaScript講座】

                                            JavaScriptの非同期処理を小学生でもわかるように噛み砕いて解説しました! 山浦清透のプログラミング講座・エンジニアキャリア情報のYouTubeチャンネルです。 よろしくお願いします^ ^ ■独学で自走できるエンジニアになるためのプログラミング学習サービス https://dokugaku-engineer.com/ ■UdemyでAWSやGitの入門講座を販売中 https://linktr.ee/yamaura ■プロフィール 山浦 清透(やまうらきよと) Web系エンジニア 1987年生まれ、福岡県出身。京都大学大学院卒。 2014年に未経験からエンジニアに転向し、既存サービスの運営、新規事業の立ち上げ等を経験。プログラミングの修得に四苦八苦してきた経験から、開発現場で使えるエンジニアリング知識を発信。Udemy受講者数6万人。

                                              小学生でもわかるasync/await/Promise入門【JavaScript講座】
                                            • A view of async memory access in rust | Xiangpeng Hao

                                              April 7, 2020 A view of async memory access in rust Section 1: Background We have been using asyncio for years to hide the IO latency. Major high-level programming languages – except C++, which is expect to have coroutine in C++20 – have proper support for both language syntax (programmability) and user space scheduling (functionality). It’s common believe that coroutine has much smaller overhead

                                              • 【ChatGPT】と話して学ぶ、【asyncとawait】 - Qiita

                                                本記事を書くきっかけ 実務に入る前に、Webアプリケーション開発の基礎の勉強をさせていただいたので、その知見の共有として。特に今回はChatGPTとの対話を通して、"文量多めの読み物っぽい"記事を目指しています。箇条書きより一連の文章の方が好みの方におすすめ。 asyncとawaitについて 「非同期処理」「待機する」といったキーワードはなんとなく覚えていたものの、説明ができなかった「async」と「await」。FEだったら避けては通れないよ!と先輩社員からもお声をいただきましたざっくり言うと asyncで非同期的な処理をして、awaitでその中で待機しなければならない内容を書いている そうです。実際に使うと、asyncの中のawaitがついている部分は完了までその後の処理が止まっているのがわかります。 ではここで早速、ChatGPTに 「サンプルコードで説明して」 とお願いしてみます。

                                                  【ChatGPT】と話して学ぶ、【asyncとawait】 - Qiita
                                                • 【JavaScript】Wikipediaの情報をAPIを使って非同期で取得する方法- asyncとawaitを学ぶ

                                                  たとえば「バナナマン」と検索すれば以下のように関連した情報が出てきます。出てきた情報はWikipediaのそれぞれの詳細ページへリンクしています。 HTMLで書くこと HTML構造は以下の通り。input要素に入力したワードを使ってWikipediaから情報を取得し、クラス名p-wikipedia__bodyの中に表示させます。 <div class="p-wikipedia"> <div class="p-wikipedia__inner"> <h3 class="p-wikipedia__heading">Wikipediaで検索する</h3> <div class="p-wikipedia__search"> <input id="js-wikipedia-input" type="text" value="" placeholder="検索ワード"> <button id="js-

                                                    【JavaScript】Wikipediaの情報をAPIを使って非同期で取得する方法- asyncとawaitを学ぶ
                                                  • Downloading 100,000 Files Using Async Rust - Pat Shaughnessy

                                                    Rust's new async/await feature makes it easy to stop and start asynchronous tasks (from: Wikimedia Commons) Imagine if you had a text file containing thousands of URLs: $ cat urls.txt https://example.com/1.html https://example.com/2.html https://example.com/3.html etc... https://example.com/99999.html https://example.com/100000.html …and you needed to download all of those HTML pages efficiently.

                                                    • 多分わかりやすいC#の非同期処理その2 〜 asyncとawait 〜 | SIOS Tech. Lab

                                                      ◆ Live配信スケジュール ◆ サイオステクノロジーでは、Microsoft MVPの武井による「わかりみの深いシリーズ」など、定期的なLive配信を行っています。 ⇒ 詳細スケジュールはこちらから ⇒ 見逃してしまった方はYoutubeチャンネルをご覧ください 【5/21開催】Azure OpenAI ServiceによるRAG実装ガイドを公開しました 生成AIを活用したユースケースで最も一番熱いと言われているRAGの実装ガイドを公開しました。そのガイドの紹介をおこなうイベントです!! https://tech-lab.connpass.com/event/315703/ こんにちは、サイオステクノロジー技術部 武井(Twitter:@noriyukitakei)です。今回は前回に引き続き、C#の非同期処理について書きたいと思います。 今回は前回のThreadとTaskよりももっと大変

                                                        多分わかりやすいC#の非同期処理その2 〜 asyncとawait 〜 | SIOS Tech. Lab
                                                      • 【Unity】【C#】Unityでasync/await、Taskを完全に理解する!基礎から応用まで非同期処理を総まとめ - LIGHT11

                                                        Unityでasync/await、Taskを実用レベルでしっかり理解するために必要な情報をまとめました。 はじめに - async?await?Taskとは? MonoBehaviourのメソッド(Startとか)を非同期メソッドにする 結果を返すTaskを作る 複数のTaskを直列で実行する 複数のTaskを並列で実行する Taskをキャンセルする 例外処理について タイムアウト処理 await後に元のスレッドに戻さない 参考 Unity2018.2 C#6 はじめに - async?await?Taskとは? async/await、Taskを学ぶ上で最初にするべきことは非同期処理の概念を理解することです。 次の記事では非同期処理の概念とasync/await、Taskの基本的な使い方をわかりやすく説明しています。 必要に応じて参照してください。 light11.hatenadiar

                                                          【Unity】【C#】Unityでasync/await、Taskを完全に理解する!基礎から応用まで非同期処理を総まとめ - LIGHT11
                                                        • 2022/5 async/awaitから理解するJavaScript非同期処理

                                                          最近身の回りにJavaScriptを使う人が増えています。フロントエンドエンジニア(自称)としては嬉しい限りです。そんな中、非同期処理について聞かれることが多いので、初学者にもなるべくわかりやすく説明してみたいと思います。 インターネットでJavaScriptの非同期処理について検索すると、コールバック、Promise、async/await...というように、難しい話がたくさん出てきて混乱すると思います。 非同期処理についてはコールバック関数、Promise、async/awaitの順番で学んでいくのが普通ですが、コールバック関数、Promiseは少し難しいので、以下の順番で説明していこうと思います。 async/await コールバック関数 Promise 非同期処理tips まず先に非同期処理の概念について説明したいところですが、後輩がとてもわかりやすく説明してくれているのでここでは

                                                            2022/5 async/awaitから理解するJavaScript非同期処理
                                                          • why async fn in traits are hard · baby steps

                                                            This blog is where I post up various half-baked ideas that I have. All PostsCategoriesGitHubTwitterRSS/Atom feeds After reading boat’s excellent post on asynchronous destructors, I thought it might be a good idea to write some about async fn in traits. Support for async fn in traits is probably the single most common feature request that I hear about. It’s also one of the more complex topics. So I

                                                            • Woice an async voice messenger with transcriptions ✌️

                                                              With woice, your team can brainstorm with clear head

                                                                Woice an async voice messenger with transcriptions ✌️
                                                              • Rust no-stdのasync完全理解を目指そう! - 低レイヤ強くなりたい組込み屋さんのブログ

                                                                はじめに この記事はRust Advent Calendar 2019の17日目として書きました。 組込みRust界の神japaricさんがno-std環境でasyncを使うPoCレポジトリを公開しています。 github.com 理解できるかどうか非常に自信がありませんが、これは見てみるしかありません! 後日正式な記事が書かれるそうなので、それを待ったほうが得策かもしれません! 引用の領域超えている気がしますので、一応ライセンス表記します。 今回解説するレポジトリは、MIT license、もしくは、Apache License, Version 2.0、でライセンスされています。 目次 自分なりのまとめ README 実装を覗いてみよう 自分なりのまとめ 組込みのno-std環境で使えるasync-awaitのproof of conceptを紹介するよ (nightlyは必要だけどね

                                                                  Rust no-stdのasync完全理解を目指そう! - 低レイヤ強くなりたい組込み屋さんのブログ
                                                                • Are you using promises and async / await safely in Node.js?

                                                                  Are you using promises and async / await safely in Node.js? You’re building your Node.js server applications with a framework, and using promises and async / await. Mostly everything’s working well, but it can get confusing at times, especially when you need to handle errors. How do you know if you’re writing your async code correctly? And what happens if you’re not?! Promises and async / await ar

                                                                    Are you using promises and async / await safely in Node.js?
                                                                  • 非同期処理のAsync-await構文を実装したRust v1.39.0がリリース

                                                                    The Rust Teamはオープンソースのプログラミング言語Rustに非同期処理"async-await"を実装したv1.39.0をリリースしたことを公式ブログで発表した。 Rust公式サイト v1.39のアナウンスメントと別立てで用意された投稿"Async-await on stable Rust!"には2016年の最初の提案からの歩みに触れながら、"Minimum Viable Product"(最小実行可能製品)ではあるが、今後のRustの重要なストーリーになると大きな意味合いを持つバージョンアップであると述べている。 ブログではv1.36.0から標準機能として実装されている非同期処理のためのFutureと今回実装されたasync fnを付した関数と.awaitを用いて非同期処理のサンプルを示している。通常の関数と異なり、async fnが付された関数は呼び出されても実行を待機し、

                                                                      非同期処理のAsync-await構文を実装したRust v1.39.0がリリース
                                                                    • Async Interview #1: Alex and Nick talk about async I/O and WebAssembly · baby steps

                                                                      When users invoke this run function from JS, it acts just like a JavaScript asynchronous function, which means that it returns a JS promise. This is possible because wasm-bindgen includes the ability to interconvert between JS and Rust promises. You can see this at play also within the run function, which invokes fetch and then converts the result into a Rust future: Note the JsFuture::from call i

                                                                      • async対応版Rocket、v0.5を試してみる - paild tech blog

                                                                        Rocketの特徴 Rocketにはこれまで何が起きていたのか v0.5を使う 今回作るアプリケーションのお題 使用するクレートの追加 Routing JSON Fairings: データベース接続 1. コネクションプールを保持するための構造体を用意する 2. 設定ファイルに情報を書く 3. 1で作った構造体をサーバーにattachし、アプリケーションを起動する。 Todoを作成するRoutingを用意する Responder: エラーハンドリング 注意したいこと まとめ 参考サイト お手伝いの @helloyuki です。 最近、asyncに完全対応したRocketがついにリリースされ、v0.5から使えるようになったというニュースが舞い込んできました。RocketはRustのエコシステムをかなり前から支えてきたクレートではあったものの、いくつかの事情によりしばらくなかなか技術選定されな

                                                                          async対応版Rocket、v0.5を試してみる - paild tech blog
                                                                        • rust-blog/posts/restful-api-in-sync-and-async-rust.md at master · pretzelhammer/rust-blog

                                                                          Let's implement a RESTful API server in Rust for an imaginary Kanban-style project management app. A popular real-world example of such an app is Trello: On its surface Kanban is pretty simple: there's a board and cards. The board represents a project. The cards represent tasks. The position of the cards on the board represents the state and progress of the tasks. The simplest boards have 3 column

                                                                            rust-blog/posts/restful-api-in-sync-and-async-rust.md at master · pretzelhammer/rust-blog