2012-10-10から1日間の記事一覧
以下のコードだとnumsがすべてundefinedの配列になる。 step( -> group = this.group() func = (done) -> done(1) for i in [0..10] setTimeout func(group), 100 , (err, nums) -> console.log nums )これは非同期関数のfuncの第一引数がエラーオブジェクト…
以下のコードだとnumsがすべてundefinedの配列になる。 step( -> group = this.group() func = (done) -> done(1) for i in [0..10] setTimeout func(group), 100 , (err, nums) -> console.log nums )これは非同期関数のfuncの第一引数がエラーオブジェクト…