{"json_modified": "2015-04-17T08:22:57.592369", "slug": "Web/JavaScript/Reference/Global_Objects/Promise/race", "tags": [], "locale": "zh-CN", "title": "Promise.race()", "translations": [{"title": "Promise.race()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race", "tags": ["Experimental", "Exp\u00e9rimental", "JavaScript", "Promise", "ECMAScript6", "Method"], "summary": "The Promise.race(iterable)
method returns a promise that resolves or rejects as soon as one of the promises in the iterable resolves or rejects, with the value or reason from that promise.", "localization_tags": [], "locale": "en-US", "last_edit": "2014-10-18T08:18:56", "review_tags": []}, {"title": "Promise.race()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Promise/race", "tags": ["Reference", "Experimental", "R\u00e9f\u00e9rence", "Exp\u00e9rimental", "JavaScript", "Promise", "ECMAScript6", "Method"], "summary": "La m\u00e9thode Promise.race(it\u00e9rable)
renvoie une promesse qui est r\u00e9solue ou rejet\u00e9e d\u00e8s qu'une des promesses de l'it\u00e9rables est r\u00e9solue ou rejet\u00e9e. La valeur (dans le cas de la r\u00e9solution) ou la raison (dans le cas d'un \u00e9chec) utilis\u00e9e est celle de la promesse de l'it\u00e9rable qui est resolue/qui \u00e9choue.", "localization_tags": [], "locale": "fr", "last_edit": "2015-02-01T12:49:14", "review_tags": []}], "modified": "2015-04-17T08:22:56", "label": "Promise.race()", "localization_tags": [], "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/race", "last_edit": "2015-04-04T12:39:28", "summary": "Promise.race(iterable)\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2apromise\uff0c\u8fd9\u4e2apromise\u5728iterable\u4e2d\u7684
\u4efb\u610f\u4e00\u4e2apromise\u88ab\u89e3\u51b3\u6216\u62d2\u7edd\u540e\uff0c
\u7acb\u523b\u4ee5\u76f8\u540c\u7684\u89e3\u51b3\u503c
\u88ab\u89e3\u51b3\u6216\u4ee5\u76f8\u540c\u7684\u62d2\u7edd\u539f\u56e0\u88ab
\u62d2\u7edd\u3002
", "sections": [{"id": "Quick_Links", "title": "JavaScript \u6807\u51c6\u5e93 Promise \u5c5e\u6027 Promise.prototype \u65b9\u6cd5 Promise.all() Promise.prototype.catch() Promise.prototype.then() Promise.race() Promise.reject() Promise.resolve() [Translate] \u7ee7\u627f Function \u5c5e\u6027 Function.arguments Function.arity Function.caller Function.displayName [Translate] Function.length Function.name Function.prototype \u65b9\u6cd5 Function.prototype.apply() Function.prototype.bind() Function.prototype.call() Function.prototype.isGenerator() Function.prototype.toSource() Function.prototype.toString() Object \u5c5e\u6027 Object.prototype.__count__ [Translate] Object.prototype.__noSuchMethod__ [Translate] Object.prototype.__parent__ Object.prototype.__proto__ Object.prototype.constructor \u65b9\u6cd5 Object.prototype.__defineGetter__() Object.prototype.__defineSetter__() Object.prototype.__lookupGetter__() Object.prototype.__lookupSetter__() [Translate] Object.prototype.hasOwnProperty() Object.prototype.isPrototypeOf() Object.prototype.propertyIsEnumerable() Object.prototype.toLocaleString() Object.prototype.toSource() Object.prototype.toString() Object.prototype.unwatch() [Translate] Object.prototype.valueOf() Object.prototype.watch()"}, {"id": "Summary", "title": "\u6982\u8ff0"}, {"id": "Syntax", "title": "\u8bed\u6cd5"}, {"id": ".E5.8F.82.E6.95.B0", "title": "\u53c2\u6570"}, {"id": "Description", "title": "\u63cf\u8ff0"}, {"id": ".E7.A4.BA.E4.BE.8B", "title": "\u793a\u4f8b"}, {"id": ".E4.BD.BF.E7.94.A8Promise.race_.E2.80.93_.E4.BD.BF.E7.94.A8setTimeout.E7.9A.84.E7.A4.BA.E4.BE.8B", "title": "\u4f7f\u7528 Promise.race \u2013 \u4f7f\u7528 setTimeout\u7684\u793a\u4f8b"}, {"id": ".E8.A7.84.E8.8C.83", "title": "\u89c4\u8303"}, {"id": ".E6.B5.8F.E8.A7.88.E5.99.A8.E5.85.BC.E5.AE.B9.E6.80.A7", "title": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027"}, {"id": ".E5.8F.82.E8.A7.81", "title": "\u53c2\u89c1"}], "id": 146621, "review_tags": []}