Skip to content

Conversation

@chvmvd
Copy link
Contributor

@chvmvd chvmvd commented Nov 4, 2025

「Fetch APIによるデータの取得」の節にある非同期処理に関するtipの内容と完全に重複していたため、「データベース」の節のtipを削除しました。

:::tip[非同期処理]
JavaScriptにおける<Term>**非同期処理**</Term>とは、ファイルの入出力やネットワーク通信など、JavaScriptの外側の時間のかかる処理の完了を待つ間、ほかの処理を実行できるようにする仕組みです。非同期処理を行う関数を使用するためには、次の2つのルールを守る必要があります。
- 非同期処理を行う関数を呼び出す関数を定義する際、`async`キーワードをつけること
- 非同期処理を行う関数の戻り値に対し、`await`演算子を適用すること
非同期処理を行う関数の戻り値の実態は、`Promise`と呼ばれるオブジェクトです。`await`演算子は、`Promise`オブジェクトに作用し、その処理が完了するまで待機します。詳細は、[MDNの記事](https://developer.mozilla.org/ja/docs/Learn/JavaScript/Asynchronous)を参照してください。
:::

@cloudflare-workers-and-pages
Copy link

Deploying utcode-learn with  Cloudflare Pages  Cloudflare Pages

Latest commit: a05461d
Status: ✅  Deploy successful!
Preview URL: https://98ea2846.utcode-learn.pages.dev
Branch Preview URL: https://remove-duplicated-asynchrono.utcode-learn.pages.dev

View logs

@chvmvd chvmvd marked this pull request as ready for review November 4, 2025 01:44
@chvmvd chvmvd requested a review from Copilot November 4, 2025 01:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the reference page for the "asynchronous processing" (非同期処理) term definition and simplifies an explanatory tip section in the database documentation.

  • Updates the term definition reference from /docs/web-servers/database/ to /docs/web-servers/fetch-api/
  • Removes a detailed tip about asynchronous processing from the database documentation and replaces it with a concise statement

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/components/Term/definitions.js Updates the reference page for the asynchronousProcess term definition to point to the fetch-api page
docs/3-web-servers/08-database/index.mdx Removes detailed asynchronous processing explanation tip and replaces it with a simpler statement

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants