サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ノーベル賞
www.promisejs.org
Motivation Consider the following synchronous JavaScript function to read a file and parse it as JSON. It is simple and easy to read, but you wouldn't want to use it in most applications as it is blocking. This means that while you are reading the file from disk (a slow operation) nothing else can happen. function readJSONSync(filename) { return JSON.parse(fs.readFileSync(filename, 'utf8')); } To
このページを最初にブックマークしてみませんか?
『Promises』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く