1414 < a title ="PromiseContext Enumeration Reference "> </ a >
1515 < header >
1616 < div class ="content-wrapper ">
17- < p > < a href ="../index.html "> Tomorrowland Docs</ a > (100% documented)</ p >
17+ < p > < a href ="../index.html "> Tomorrowland 1.2.0 Docs</ a > (100% documented)</ p >
1818 < p class ="header-right "> < a href ="https://github.com/lilyball/Tomorrowland "> < img src ="../img/gh.png "/> View on GitHub</ a > </ p >
1919 </ div >
2020 </ header >
@@ -304,7 +304,7 @@ <h4>Declaration</h4>
304304 < code >
305305 < a name ="/s:12Tomorrowland14PromiseContextO5queueyACSo012OS_dispatch_D0CcACmF "> </ a >
306306 < a name ="//apple_ref/swift/Element/queue(_:) " class ="dashAnchor "> </ a >
307- < a class ="token " href ="#/s:12Tomorrowland14PromiseContextO5queueyACSo012OS_dispatch_D0CcACmF "> queue(_:)</ a >
307+ < a class ="token " href ="#/s:12Tomorrowland14PromiseContextO5queueyACSo012OS_dispatch_D0CcACmF "> queue(_:< wbr > )</ a >
308308 </ code >
309309 </ div >
310310 < div class ="height-container ">
@@ -331,7 +331,7 @@ <h4>Declaration</h4>
331331 < code >
332332 < a name ="/s:12Tomorrowland14PromiseContextO14operationQueueyACSo011NSOperationE0CcACmF "> </ a >
333333 < a name ="//apple_ref/swift/Element/operationQueue(_:) " class ="dashAnchor "> </ a >
334- < a class ="token " href ="#/s:12Tomorrowland14PromiseContextO14operationQueueyACSo011NSOperationE0CcACmF "> operationQueue(_:)</ a >
334+ < a class ="token " href ="#/s:12Tomorrowland14PromiseContextO14operationQueueyACSo011NSOperationE0CcACmF "> operationQueue(_:< wbr > )</ a >
335335 </ code >
336336 </ div >
337337 < div class ="height-container ">
@@ -394,6 +394,41 @@ <h4>Declaration</h4>
394394 </ section >
395395 </ div >
396396 </ li >
397+ < li class ="item ">
398+ < div >
399+ < code >
400+ < a name ="/s:12Tomorrowland14PromiseContextO5nowOryA2CcACmF "> </ a >
401+ < a name ="//apple_ref/swift/Element/nowOr(_:) " class ="dashAnchor "> </ a >
402+ < a class ="token " href ="#/s:12Tomorrowland14PromiseContextO5nowOryA2CcACmF "> nowOr(_:< wbr > )</ a >
403+ </ code >
404+ </ div >
405+ < div class ="height-container ">
406+ < div class ="pointer-container "> </ div >
407+ < section class ="section ">
408+ < div class ="pointer "> </ div >
409+ < div class ="abstract ">
410+ < p > Execute synchronously if the promise is already resolved, otherwise use another context.</ p >
411+
412+ < p > This is a convenience for a pattern where you check a promise’s < code > result</ code > to see if it’s
413+ already resolved and only attach a callback if it hasn’t resolved yet. Passing this context
414+ to a callback will execute it synchronously before returning to the caller if and only if
415+ the promise has already resolved.</ p >
416+
417+ < p > If this is passed to a promise initializer it acts like < code > < a href ="../Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO9immediateyA2CmF "> .immediate</ a > </ code > . If passed to a
418+ < code > < a href ="../Structs/DelayedPromise.html "> DelayedPromise</ a > </ code > initializer it acts like the given context.</ p >
419+
420+ </ div >
421+ < div class ="declaration ">
422+ < h4 > Declaration</ h4 >
423+ < div class ="language ">
424+ < p class ="aside-title "> Swift</ p >
425+ < pre class ="highlight swift "> < code > < span class ="kd "> indirect</ span > < span class ="k "> case</ span > < span class ="nf "> nowOr</ span > < span class ="p "> (</ span > < span class ="kt "> PromiseContext</ span > < span class ="p "> )</ span > </ code > </ pre >
426+
427+ </ div >
428+ </ div >
429+ </ section >
430+ </ div >
431+ </ li >
397432 < li class ="item ">
398433 < div >
399434 < code >
@@ -426,7 +461,7 @@ <h4>Declaration</h4>
426461 < code >
427462 < a name ="/s:12Tomorrowland14PromiseContextO3qosAC8Dispatch0E3QoSV0F6SClassO_tcfc "> </ a >
428463 < a name ="//apple_ref/swift/Method/init(qos:) " class ="dashAnchor "> </ a >
429- < a class ="token " href ="#/s:12Tomorrowland14PromiseContextO3qosAC8Dispatch0E3QoSV0F6SClassO_tcfc "> init(qos:)</ a >
464+ < a class ="token " href ="#/s:12Tomorrowland14PromiseContextO3qosAC8Dispatch0E3QoSV0F6SClassO_tcfc "> init(qos:< wbr > )</ a >
430465 </ code >
431466 </ div >
432467 < div class ="height-container ">
@@ -455,7 +490,7 @@ <h4>Declaration</h4>
455490 < code >
456491 < a name ="/s:12Tomorrowland14PromiseContextO2eeoiySbAC_ACtFZ "> </ a >
457492 < a name ="//apple_ref/swift/Method/==(_:_:) " class ="dashAnchor "> </ a >
458- < a class ="token " href ="#/s:12Tomorrowland14PromiseContextO2eeoiySbAC_ACtFZ "> ==(_:_: )</ a >
493+ < a class ="token " href ="#/s:12Tomorrowland14PromiseContextO2eeoiySbAC_ACtFZ "> ==(_:< wbr > _: < wbr > )</ a >
459494 </ code >
460495 </ div >
461496 < div class ="height-container ">
@@ -516,8 +551,8 @@ <h4>Parameters</h4>
516551 </ section >
517552 </ section >
518553 < section id ="footer ">
519- < p > © 2020 < a class ="link " href ="https://github.com/lilyball/Tomorrowland " target ="_blank " rel ="external "> Lily Ballard</ a > . All rights reserved. (Last updated: 2020-04-01 )</ p >
520- < p > Generated by < a class ="link " href ="https://github.com/realm/jazzy " target ="_blank " rel ="external "> jazzy ♪♫ v0.13.1 </ a > , a < a class ="link " href ="https://realm.io " target ="_blank " rel ="external "> Realm</ a > project.</ p >
554+ < p > © 2020 < a class ="link " href ="https://github.com/lilyball/Tomorrowland " target ="_blank " rel ="external "> Lily Ballard</ a > . All rights reserved. (Last updated: 2020-05-21 )</ p >
555+ < p > Generated by < a class ="link " href ="https://github.com/realm/jazzy " target ="_blank " rel ="external "> jazzy ♪♫ v0.13.3 </ a > , a < a class ="link " href ="https://realm.io " target ="_blank " rel ="external "> Realm</ a > project.</ p >
521556 </ section >
522557 </ article >
523558 </ div >
0 commit comments