状態管理・非同期処理 (Deferred Object)
一覧
概要 | 構文 | 戻り値 | P | 別カテゴリ |
---|---|---|---|---|
Deferredオブジェクト 生成 | $.Deferred( [beforeStart ] ) 1.5 | Deferred | ||
《Deferred 成功処理・失敗処理》共通ハンドラ追加 | deferred.always( alwaysCallbacks [, alwaysCallbacks ] ) 1.6 | Deferred | ● | |
《Deferred 失敗処理》ハンドラ追加 | deferred.catch( failFilter ) 3.0 | Promise | ● | |
《Deferred 成功処理》ハンドラ追加 | deferred.done( doneCallbacks [, doneCallbacks ] ) 1.5 | Deferred | ● | |
《Deferred 失敗処理》ハンドラ追加 | deferred.fail( failCallbacks [, failCallbacks ] ) 1.5 | Deferred | ● | |
Deferred 失敗状態 判定 | deferred.isRejected() 1.51.71.8 | Boolean | ||
Deferred 成功状態 判定 | deferred.isResolved() 1.51.71.8 | Boolean | ||
Deferred 状態通知 | deferred.notify( args ) 1.7 | Deferred | ||
Deferred 状態通知 (this参照指定) | deferred.notifyWith( context [, args ] ) 1.7 | Deferred | ||
《Deferred 成功処理・失敗処理・状態通知》 ハンドラ追加 | deferred.pipe( [doneFilter ] [, failFilter ] ) 1.61.8 deferred.pipe( [doneFilter ] [, failFilter ] [, progressFilter ] ) 1.71.8 | Promise | ● | |
《Deferred 状態通知》ハンドラ追加 | deferred.progress( progressCallbacks [, progressCallbacks ] ) 1.7 | Deferred | ● | |
Promiseオブジェクト 生成 (Deferred) | deferred.promise( [target ] ) 1.5 | Promise | ● | |
Deferred 失敗処理 | deferred.reject( [args ] ) 1.5 | Deferred | ||
Deferred 失敗処理 (this参照指定) | deferred.rejectWith( context [, args ] ) 1.5 | Deferred | ||
Deferred 成功処理 | deferred.resolve( [args ] ) 1.5 | Deferred | ||
Deferred 成功処理 (this参照指定) | deferred.resolveWith( context [, args ] ) 1.5 | Deferred | ||
Deferred 状態 取得 | deferred.state() 1.7 | String | ● | |
《Deferred 成功処理・失敗処理・状態通知》 ハンドラ追加 | deferred.then( doneFilter [, failFilter ] [, progressFilter ] ) 1.8 deferred.then( doneCallbacks, failCallbacks ) 1.51.8 deferred.then( doneCallbacks, failCallbacks [, progressCallbacks ] ) 1.71.8 | Promise | ● | |
Promiseオブジェクト 生成 (jQuery) | .promise( [type ] [, target ] ) 1.6 | Promise | ||
状態判定 | $.when( deferreds ) 1.5 | Promise | Core |
例
【並行処理】
【順次処理】