|
In computer programming, await is a feature found in C# 5.0, Python 3.5, in an experimental extension for Scala,〔(【引用サイトリンク】title=Scala Async )〕 and more recently JavaScript that allows an asynchronous, non-blocking method call to be performed in a similar way to an ordinary synchronous method call. While a casual reading of the code would suggest that the method call blocks until the requested data is available, in fact it does not. == In JavaScript == The initial spec for the ES7 (ES2016) feature can be found here: https://github.com/tc39/ecmascript-asyncawait. Here's an example (modified from this〔(【引用サイトリンク】title=Taming the asynchronous beast with ES7 )〕 article): async function createNewDoc() ~async function main() }() 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Await」の詳細全文を読む スポンサード リンク
|