JavaScript 비동기 프로그래밍 집중 탐구 - 조유성님

54

Transcript of JavaScript 비동기 프로그래밍 집중 탐구 - 조유성님

kokoto

helloWorld()

world()

fn(0)

fn(1)

fn(2)

fn(3)

fn(4)

fn(5)

anonymous(row, callback)anonymous(nextRow, callback)

eachSeries는 (iterable, iteratee, callback)을 인수로 받아서eachLimit(iterable, 1, iteratee, callback)을 실행

eachSeries는 (iterable, iteratee, callback)을 인수로 받아서eachLimit(iterable, 1, iteratee, callback)을 실행

eachSeries는 (iterable, iteratee, callback)을 인수로 받아서eachLimit(iterable, 1, iteratee, callback)을 실행즉 eachOfLimit(1)(iterable, 인덱스 제거된 iteratee, callback)을 실행

eachSeries는 (iterable, iteratee, callback)을 인수로 받아서eachLimit(iterable, 1, iteratee, callback)을 실행즉 eachOfLimit(1)(iterable, 인덱스 제거된 iteratee, callback)을 실행

eachSeries는 (iterable, iteratee, callback)을 인수로 받아서eachLimit(iterable, 1, iteratee, callback)을 실행즉 eachOfLimit(1)(iterable, 인덱스 제거된 iteratee, callback)을 실행

eachSeries는 (iterable, iteratee, callback)을 인수로 받아서eachLimit(iterable, 1, iteratee, callback)을 실행즉 eachOfLimit(1)(iterable, 인덱스 제거된 iteratee, callback)을 실행

anonymous(row, callback)

anonymous(nextRow, callback)

anonymous(nextRow, callback)

anonymous(nextRow, callback)

anonymous(nextRow, callback)

anonymous(row, callback)

Keyword in:file Keyword

Keyword in:file,path Keyword

Keyword language:xml XML Keyword

Keyword path:res/ res/ Keyword

helloAsync()

setTimeout()

console.log() setTimeout()anonymous()anonymous()

world()console.log()

helloAsync()

setTimeout()

setTimeout()

anonymous(row, callback)

setTimeout()

setTimeout()anonymous()anonymous()

anonymous(row, callback)

setTimeout()

callback()

anonymous(row, callback)

setTimeout()anonymous()anonymous()

setTimeout()

callback()

anonymous()

callback()

HTTP I/O

Request #1

Request #2

Request #3

Request #n

Request Processing

FS I/O

DB I/O