エージェント

エージェント (JavaScript)

[8] JavaScriptエージェント (agent) とは、 プログラムが実行されるスレッドに相当するものを、 特定の実装方法に縛られないよう仕様書上抽象化したものです。 >>7

[16] エージェントエージェントクラスターに属します。

仕様書

Web のエージェント

[10] Web では、同期的に互いにアクセスし得る大域オブジェクト/realm をまとめた単位が1つのエージェントとなります。

[2] Webエージェント

作成

[11] エージェントを作成 (さくせい) (create an agent) するには、 boolean ブロック可能について、 次のようにします。 >>7

  1. [12] signifier を、 新しい固有内部値に設定します。
  2. [14] エージェントを、 新しいエージェントに設定します。
    [15] エージェント
    CanBlock
    ブロック可能
    Signifier
    signifier
    CandidateExecution
    新しい候補実行
    IsLockFree1
    実装依存
    IsLockFree2
    実装依存
    LittleEndian
    実装依存
    イベントループ
    新しいイベントループ
  3. [13] エージェントを返します。

関連

[9] 利用者エージェントエージェントとは違う意味です。

歴史

[1] Define agents and agent clusters (annevk著, ) https://github.com/whatwg/html/commit/4db86547f1184e7ceb4f1009cb3bef28101eda4f

[3] What is an Agent? · Issue #882 · tc39/ecma262 () https://github.com/tc39/ecma262/issues/882

[4] Clarify and explain agents and agent clusters (domenic著, ) https://github.com/whatwg/html/commit/db6d0df0b681d0b83a35b60302ad5077e59bb8aa

[5] Add Origin-aware Transferrables · Issue #3766 · whatwg/html () https://github.com/whatwg/html/issues/3766

[6] Clarify and explain agents and agent clusters by domenic · Pull Request #3783 · whatwg/html () https://github.com/whatwg/html/pull/3783