Fix deadlock in Promise.await()
Fix deadlock in Promise.await()

Because observation must synchronize on the signal object, our
NSCondition nestled in here could deadlock with the signal’s private
GCD queue.

Use a dispatch semaphore for notifying instead, since we shouldn’t need
to grab a mutex just to notify the awaiter that a value was received.

kaylio/ReactiveCocoa,jeelun/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,leelili/ReactiveCocoa,eyu1988/ReactiveCocoa,LHDsimon/ReactiveCocoa,wpstarnice/ReactiveCocoa,calebd/ReactiveCocoa,cogddo/ReactiveCocoa,ztchena/ReactiveCocoa,emodeqidao/ReactiveCocoa,KuPai32G/ReactiveCocoa,KuPai32G/ReactiveCocoa,lixar/ReactiveCocoa,Eveian/ReactiveCocoa,jeelun/ReactiveCocoa,nikita-leonov/ReactiveCocoa,vincentiss/ReactiveCocoa,victorlin/ReactiveCocoa,beni55/ReactiveCocoa,bensonday/ReactiveCocoa,zhukaixy/ReactiveCocoa,shaohung001/ReactiveCocoa,andersio/ReactiveCocoa,fhchina/ReactiveCocoa,add715/ReactiveCocoa,zhiwen1024/ReactiveCocoa,sujeking/ReactiveCocoa,zhigang1992/ReactiveCocoa,WEIBP/ReactiveCocoa,Khan/ReactiveCocoa,dullgrass/ReactiveCocoa,Ricowere/ReactiveCocoa,zhaoguohui/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,zhiwen1024/ReactiveCocoa,liufeigit/ReactiveCocoa,libiao88/ReactiveCocoa,leelili/ReactiveCocoa,brasbug/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,goodheart/ReactiveCocoa,Farteen/ReactiveCocoa,mtxs007/ReactiveCocoa,gengjf/ReactiveCocoa,richeterre/ReactiveCocoa,dskatz22/ReactiveCocoa,jsslai/ReactiveCocoa,zzzworm/ReactiveCocoa,ikesyo/ReactiveCocoa,cstars135/ReactiveCocoa,zxq3220122/ReactiveCocoa,yonekawa/ReactiveCocoa,ericzhou2008/ReactiveCocoa,bensonday/ReactiveCocoa,jam891/ReactiveCocoa,stevielu/ReactiveCocoa,WEIBP/ReactiveCocoa,SuPair/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,chao95957/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,sujeking/ReactiveCocoa,goodheart/ReactiveCocoa,mattpetters/ReactiveCocoa,yoichitgy/ReactiveCocoa,imkerberos/ReactiveCocoa,zxq3220122/ReactiveCocoa,hilllinux/ReactiveCocoa,tonyarnold/ReactiveCocoa,FelixYin66/ReactiveCocoa,taylormoonxu/ReactiveCocoa,leichunfeng/ReactiveCocoa,wangqi211/ReactiveCocoa,AlanJN/ReactiveCocoa,Ethan89/ReactiveCocoa,esttorhe/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,xulibao/ReactiveCocoa,dullgrass/ReactiveCocoa,tonyarnold/ReactiveCocoa,tornade0913/ReactiveCocoa,longv2go/ReactiveCocoa,leelili/ReactiveCocoa,shaohung001/ReactiveCocoa,alvinvarghese/ReactiveCocoa,natan/ReactiveCocoa,beni55/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,Ethan89/ReactiveCocoa,buildo/ReactiveCocoa,leichunfeng/ReactiveCocoa,pzw224/ReactiveCocoa,paulyoung/ReactiveCocoa,xiaobing2007/ReactiveCocoa,llb1119/test,hilllinux/ReactiveCocoa,cnbin/ReactiveCocoa,libiao88/ReactiveCocoa,windgo/ReactiveCocoa,eyu1988/ReactiveCocoa,itschaitanya/ReactiveCocoa,natestedman/ReactiveCocoa,wpstarnice/ReactiveCocoa,walkingsmarts/ReactiveCocoa,SanChain/ReactiveCocoa,qq644531343/ReactiveCocoa,hbucius/ReactiveCocoa,xumaolin/ReactiveCocoa,Farteen/ReactiveCocoa,hoanganh6491/ReactiveCocoa,xiaoliyang/ReactiveCocoa,mxxiv/ReactiveCocoa,yytong/ReactiveCocoa,ztchena/ReactiveCocoa,lixar/ReactiveCocoa,imkerberos/ReactiveCocoa,tonyarnold/ReactiveCocoa,ceekayel/ReactiveCocoa,chieryw/ReactiveCocoa,loupman/ReactiveCocoa,KJin99/ReactiveCocoa,jam891/ReactiveCocoa,ioshger0125/ReactiveCocoa,smilypeda/ReactiveCocoa,mattpetters/ReactiveCocoa,lixar/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,j364960953/ReactiveCocoa,vincentiss/ReactiveCocoa,almassapargali/ReactiveCocoa,wangqi211/ReactiveCocoa,BrooksWon/ReactiveCocoa,tonyli508/ReactiveCocoa,AlanJN/ReactiveCocoa,icepy/ReactiveCocoa,stupidfive/ReactiveCocoa,sandyway/ReactiveCocoa,xiaoliyang/ReactiveCocoa,ohwutup/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,chieryw/ReactiveCocoa,takeshineshiro/ReactiveCocoa,longv2go/ReactiveCocoa,tzongw/ReactiveCocoa,richeterre/ReactiveCocoa,almassapargali/ReactiveCocoa,zhenlove/ReactiveCocoa,richeterre/ReactiveCocoa,sujeking/ReactiveCocoa,itschaitanya/ReactiveCocoa,jaylib/ReactiveCocoa,imkerberos/ReactiveCocoa,mattpetters/ReactiveCocoa,calebd/ReactiveCocoa,JohnJin007/ReactiveCocoa,Khan/ReactiveCocoa,hbucius/ReactiveCocoa,on99/ReactiveCocoa,Ricowere/ReactiveCocoa,zhigang1992/ReactiveCocoa,dz1111/ReactiveCocoa,esttorhe/ReactiveCocoa,sdhzwm/ReactiveCocoa,terry408911/ReactiveCocoa,bensonday/ReactiveCocoa,rpowelll/ReactiveCocoa,xiaobing2007/ReactiveCocoa,victorlin/ReactiveCocoa,kaylio/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,huiping192/ReactiveCocoa,paulyoung/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,terry408911/ReactiveCocoa,FelixYin66/ReactiveCocoa,kevin-zqw/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,sandyway/ReactiveCocoa,victorlin/ReactiveCocoa,fanghao085/ReactiveCocoa,WEIBP/ReactiveCocoa,BrooksWon/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,natan/ReactiveCocoa,emodeqidao/ReactiveCocoa,andersio/ReactiveCocoa,add715/ReactiveCocoa,ShawnLeee/ReactiveCocoa,j364960953/ReactiveCocoa,sandyway/ReactiveCocoa,zzzworm/ReactiveCocoa,buildo/ReactiveCocoa,zzqiltw/ReactiveCocoa,OneSmallTree/ReactiveCocoa,JohnJin007/ReactiveCocoa,beni55/ReactiveCocoa,dskatz22/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,chieryw/ReactiveCocoa,nickcheng/ReactiveCocoa,dachaoisme/ReactiveCocoa,goodheart/ReactiveCocoa,walkingsmarts/ReactiveCocoa,icepy/ReactiveCocoa,tonyli508/ReactiveCocoa,zxq3220122/ReactiveCocoa,Juraldinio/ReactiveCocoa,paulyoung/ReactiveCocoa,DreamHill/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,icepy/ReactiveCocoa,Pingco/ReactiveCocoa,JackLian/ReactiveCocoa,alvinvarghese/ReactiveCocoa,zzqiltw/ReactiveCocoa,pzw224/ReactiveCocoa,KJin99/ReactiveCocoa,nikita-leonov/ReactiveCocoa,cstars135/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,sugar2010/ReactiveCocoa,buildo/ReactiveCocoa,xiaoliyang/ReactiveCocoa,isghe/ReactiveCocoa,nickcheng/ReactiveCocoa,valleyman86/ReactiveCocoa,ddc391565320/ReactiveCocoa,ohwutup/ReactiveCocoa,kaylio/ReactiveCocoa,ShawnLeee/ReactiveCocoa,yizzuide/ReactiveCocoa,towik/ReactiveCocoa,mxxiv/ReactiveCocoa,isghe/ReactiveCocoa,yonekawa/ReactiveCocoa,stupidfive/ReactiveCocoa,chao95957/ReactiveCocoa,kiurentu/ReactiveCocoa,dachaoisme/ReactiveCocoa,hbucius/ReactiveCocoa,Khan/ReactiveCocoa,SuPair/ReactiveCocoa,tornade0913/ReactiveCocoa,BlessNeo/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,200895045/ReactiveCocoa,alvinvarghese/ReactiveCocoa,ericzhou2008/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,bscarano/ReactiveCocoa,huiping192/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,JackLian/ReactiveCocoa,j364960953/ReactiveCocoa,zhenlove/ReactiveCocoa,natestedman/ReactiveCocoa,zhaoguohui/ReactiveCocoa,BrooksWon/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,SuPair/ReactiveCocoa,xumaolin/ReactiveCocoa,monkeydbobo/ReactiveCocoa,jackywpy/ReactiveCocoa,hj3938/ReactiveCocoa,ceekayel/ReactiveCocoa,monkeydbobo/ReactiveCocoa,ddc391565320/ReactiveCocoa,esttorhe/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,yaoxiaoyong/ReactiveCocoa,fhchina/ReactiveCocoa,dullgrass/ReactiveCocoa,andersio/ReactiveCocoa,howandhao/ReactiveCocoa,Liquidsoul/ReactiveCocoa,clg0118/ReactiveCocoa,bscarano/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,CQXfly/ReactiveCocoa,takeshineshiro/ReactiveCocoa,valleyman86/ReactiveCocoa,dachaoisme/ReactiveCocoa,kiurentu/ReactiveCocoa,hoanganh6491/ReactiveCocoa,mtxs007/ReactiveCocoa,windgo/ReactiveCocoa,KuPai32G/ReactiveCocoa,Liquidsoul/ReactiveCocoa,fhchina/ReactiveCocoa,zhigang1992/ReactiveCocoa,on99/ReactiveCocoa,gengjf/ReactiveCocoa,rpowelll/ReactiveCocoa,ioshger0125/ReactiveCocoa,Ricowere/ReactiveCocoa,jsslai/ReactiveCocoa,xulibao/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,Liquidsoul/ReactiveCocoa,wangqi211/ReactiveCocoa,cnbin/ReactiveCocoa,ztchena/ReactiveCocoa,stevielu/ReactiveCocoa,eyu1988/ReactiveCocoa,Juraldinio/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,vincentiss/ReactiveCocoa,zzqiltw/ReactiveCocoa,yonekawa/ReactiveCocoa,jam891/ReactiveCocoa,windgo/ReactiveCocoa,tiger8888/ReactiveCocoa,OneSmallTree/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,howandhao/ReactiveCocoa,rpowelll/ReactiveCocoa,jaylib/ReactiveCocoa,huiping192/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,stevielu/ReactiveCocoa,tzongw/ReactiveCocoa,kevin-zqw/ReactiveCocoa,Ethan89/ReactiveCocoa,200895045/ReactiveCocoa,KJin99/ReactiveCocoa,jackywpy/ReactiveCocoa,bscarano/ReactiveCocoa,200895045/ReactiveCocoa,LHDsimon/ReactiveCocoa,longv2go/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,Ray0218/ReactiveCocoa,jrmiddle/ReactiveCocoa,cogddo/ReactiveCocoa,smilypeda/ReactiveCocoa,Pingco/ReactiveCocoa,FelixYin66/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,ioshger0125/ReactiveCocoa,taylormoonxu/ReactiveCocoa,Ray0218/ReactiveCocoa,kiurentu/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,DreamHill/ReactiveCocoa,jeelun/ReactiveCocoa,jaylib/ReactiveCocoa,on99/ReactiveCocoa,Eveian/ReactiveCocoa,Eveian/ReactiveCocoa,jrmiddle/ReactiveCocoa,stupidfive/ReactiveCocoa,pzw224/ReactiveCocoa,natan/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,esttorhe/ReactiveCocoa,tornade0913/ReactiveCocoa,xulibao/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,qq644531343/ReactiveCocoa,clg0118/ReactiveCocoa,jrmiddle/ReactiveCocoa,add715/ReactiveCocoa,monkeydbobo/ReactiveCocoa,liufeigit/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,CQXfly/ReactiveCocoa,towik/ReactiveCocoa,huiping192/ReactiveCocoa,DreamHill/ReactiveCocoa,sdhzwm/ReactiveCocoa,brasbug/ReactiveCocoa,zhiwen1024/ReactiveCocoa,almassapargali/ReactiveCocoa,emodeqidao/ReactiveCocoa,loupman/ReactiveCocoa,liufeigit/ReactiveCocoa,Rupert-RR/ReactiveCocoa,tzongw/ReactiveCocoa,luerhouhou/ReactiveCocoa,OneSmallTree/ReactiveCocoa,fanghao085/ReactiveCocoa,zhukaixy/ReactiveCocoa,qq644531343/ReactiveCocoa,mxxiv/ReactiveCocoa,Rupert-RR/ReactiveCocoa,nickcheng/ReactiveCocoa,SanChain/ReactiveCocoa,yoichitgy/ReactiveCocoa,BlessNeo/ReactiveCocoa,smilypeda/ReactiveCocoa,Farteen/ReactiveCocoa,chao95957/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,cnbin/ReactiveCocoa,llb1119/test,ikesyo/ReactiveCocoa,kevin-zqw/ReactiveCocoa,zhukaixy/ReactiveCocoa,clg0118/ReactiveCocoa,zhaoguohui/ReactiveCocoa,howandhao/ReactiveCocoa,zhenlove/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,yoichitgy/ReactiveCocoa,Pingco/ReactiveCocoa,xiaobing2007/ReactiveCocoa,dz1111/ReactiveCocoa,zzzworm/ReactiveCocoa,CQXfly/ReactiveCocoa,calebd/ReactiveCocoa,brasbug/ReactiveCocoa,SanChain/ReactiveCocoa,sdhzwm/ReactiveCocoa,towik/ReactiveCocoa,sugar2010/ReactiveCocoa,yizzuide/ReactiveCocoa,hilllinux/ReactiveCocoa,llb1119/test,LHDsimon/ReactiveCocoa,natestedman/ReactiveCocoa,walkingsmarts/ReactiveCocoa,ohwutup/ReactiveCocoa,cogddo/ReactiveCocoa,hoanganh6491/ReactiveCocoa,cstars135/ReactiveCocoa,libiao88/ReactiveCocoa,terry408911/ReactiveCocoa,shaohung001/ReactiveCocoa,taylormoonxu/ReactiveCocoa,takeshineshiro/ReactiveCocoa,ericzhou2008/ReactiveCocoa,yizzuide/ReactiveCocoa,ceekayel/ReactiveCocoa,valleyman86/ReactiveCocoa,yytong/ReactiveCocoa,tonyli508/ReactiveCocoa,BlessNeo/ReactiveCocoa,tiger8888/ReactiveCocoa,isghe/ReactiveCocoa,jsslai/ReactiveCocoa,JackLian/ReactiveCocoa,luerhouhou/ReactiveCocoa,Rupert-RR/ReactiveCocoa,sugar2010/ReactiveCocoa,Ray0218/ReactiveCocoa,Juraldinio/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,dz1111/ReactiveCocoa,hj3938/ReactiveCocoa,mtxs007/ReactiveCocoa,wpstarnice/ReactiveCocoa,tiger8888/ReactiveCocoa,jaylib/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,luerhouhou/ReactiveCocoa,dskatz22/ReactiveCocoa,leichunfeng/ReactiveCocoa,ShawnLeee/ReactiveCocoa,xumaolin/ReactiveCocoa,hj3938/ReactiveCocoa,Ricowere/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,nickcheng/ReactiveCocoa,ddc391565320/ReactiveCocoa,nikita-leonov/ReactiveCocoa,gengjf/ReactiveCocoa,jackywpy/ReactiveCocoa,yytong/ReactiveCocoa,JohnJin007/ReactiveCocoa,itschaitanya/ReactiveCocoa,loupman/ReactiveCocoa,fanghao085/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,AlanJN/ReactiveCocoa