107 Comments

Color me surprised when I noticed that WinRT is missing the Thread.Sleep-function. Fortunately MSDN forums provided the following code snippet which quite nicely provides the same functionality:

static void Sleep(int ms)
{
   new System.Threading.ManualResetEvent(false).WaitOne(ms);
}

 

Source

Comments

Comment by sac ralph lauren

sac ralph lauren...

Current blog, fresh information, I read it from time to time!!…...

Comment by Agha

Just right. :-)

Agha
Comment by HEV

Shouldn't event be disposed manually after waiting? I don't know about about GC in WinRT but in previous frameworks finalizer of event may be called by GC hours later if waiting was long...

HEV
Comment by michael kors factory outlet

michael kors factory outlet...

cheap jordan shoes cheap jordans for sale jordans for sale jordan retro air jordans Cheap Jordan Shoes Outlet jordan outlet...

Comment by jordan retro 8

jordan retro 8...

coach outlet allen coach outlet online factory sale life coaching coach factory official site coach coupons black coach purse coach baby bags vintage coach bags...

Comment by Coach Diaper Bag

Coach Diaper Bag...

Coach Purses Outlet Cheap Michael Kors HandBags Michael Kors Outlet...

Comment by ジョーダンブランド専門店 偽物

ジョーダンブランド専門店 偽物...

锟斤拷锟斤拷锟斤拷锟斤拷`锟斤拷锟斤拷 锟剿氾拷[url=http://www.elia.co.uk/product.asp?id=181]锟斤拷锟斤拷锟斤拷锟斤拷`锟斤拷锟斤拷 锟剿氾拷[/url]锟斤拷锟斤拷锟斤拷锟斤拷`锟斤拷锟斤拷 锟斤拷锟斤拷辚?锟斤拷锟斤拷[url=http://www.elia.co.uk/product.asp?id=182]锟斤拷锟斤拷锟斤拷锟斤拷`锟斤拷锟斤拷 锟斤拷锟斤拷辚?锟斤拷锟斤拷[/url]锟斤拷锟斤拷锟斤拷锟斤拷`锟斤拷锟斤拷 锟桔ワイ锟斤拷[url=...

Comment by エアジョーダン 25cm

エアジョーダン 25cm...

锟斤拷锟斤拷锟斤拷锟斤拷`锟斤拷锟斤拷 锟斤拷锟?.5[url=http://www.wtparker.com/jordans.asp?id=361]锟斤拷锟斤拷锟斤拷锟斤拷`锟斤拷锟斤拷 锟斤拷锟?.5[/url]锟斤拷锟斤拷锟絗锟斤拷锟斤拷`锟斤拷锟斤拷锟饺ワ拷[url=http://www.wtparker.com/jordans.asp?id=362]锟斤拷锟斤拷锟絗锟斤拷锟斤拷`锟斤拷锟斤拷锟饺ワ拷[/url]锟斤拷锟斤拷锟斤拷锟斤拷`锟斤拷锟斤拷 锟侥わ拷锟侥碉拷[url=http://...

Comment by cheap nike air max

cheap nike air max...

financial returns and benefits from the employing company. They should have secure transaction processes such as encryption, contact information, privacy statement, terms and conditions statement, warranty statement, and security features such as a Tru...

Comment by cheap air max

cheap air max...

be considered or construed as individualized or specific investment advice. However, you'd be very impressed the amount of folks go out to the actual Do-it-yourself hyper with out truly considering the actual job they're gonna be doing....

Comment by cheap nike air max online

cheap nike air max online...

I think the issue is not as black-and-white as I originally imagined it would be....

Comment by new nike shoes

new nike shoes...

An indelible felt marker can be used, but a standard felt tip marker will probably not work well. Was I so scared that I blocked it out. Contemporary graphics are often applied using self-adhesive vinyl decals. Whoesaes, depatmenta stoes, otet mas ae h...

Comment by nike deszkás cipők

nike deszkás cipők...

reduced or absolutely no lighting and then you also have to contend with the blinding lamps coming at you from other motorists. A final hearing is scheduled for September 12. Three years after he left HP behind for good, Packard passed away....

Comment by sport kiegészítők

sport kiegészítők...

to the end-user, Hardt says. There are many craft retail outlets as well as pottery studios that sell off clay-based pots that you could decorate with your own personal design. " or "Will you go out with me?...

Comment by air max 95 sneakers

air max 95 sneakers...

be considered or construed as individualized or specific investment advice. However, you'd be very impressed the amount of folks go out to the actual Do-it-yourself hyper with out truly considering the actual job they're gonna be doing....

Comment by nike utcai cipő

nike utcai cipő...

financial returns and benefits from the employing company. They should have secure transaction processes such as encryption, contact information, privacy statement, terms and conditions statement, warranty statement, and security features such as a Tru...

Comment by ルームシューズ ニューバランス

ルームシューズ ニューバランス...

锟剿ワ拷`锟叫ワ拷锟?dena[url=http://www.gyorimuhely.hu/display.asp?id=181]锟剿ワ拷`锟叫ワ拷锟?dena[/url]锟剿ワ拷`锟叫ワ拷锟?锟絰锟接凤拷[url=http://www.gyorimuhely.hu/display.asp?id=182]锟剿ワ拷`锟叫ワ拷锟?锟絰锟接凤拷[/url]锟饺ワ拷氓锟斤拷螗哎锟斤拷锟絗锟斤拷 锟剿ワ拷`锟叫ワ拷锟?/a>[url=http://www.gyorimuhely.hu/display.asp?...

Comment by nike air max 90s cheap

nike air max 90s cheap...

Anderson Sheppard, a reputable tailor on London fashionable Savile Row. The meeting consisted of prayer, food, meditation, toning, voicing our intentions, and praise and support for the intentions of others. Typical fire safes are rated for 350 degrees...

Comment by air max one cheap

air max one cheap...

An indelible felt marker can be used, but a standard felt tip marker will probably not work well. Was I so scared that I blocked it out. Contemporary graphics are often applied using self-adhesive vinyl decals. Whoesaes, depatmenta stoes, otet mas ae h...

Comment by nike air max skyline cheap

nike air max skyline cheap...

It is beneficial to a website to make sure your profit and increase customer appreciation. Family Health GuideTo take advantage of the latest medical advances, and to deal with the often-confusing world of heath care, you need information that is clear...

Comment by csizma outlet

csizma outlet...

An indelible felt marker can be used, but a standard felt tip marker will probably not work well. Was I so scared that I blocked it out. Contemporary graphics are often applied using self-adhesive vinyl decals. Whoesaes, depatmenta stoes, otet mas ae h...

Comment by nike fekete cipő

nike fekete cipő...

I think the issue is not as black-and-white as I originally imagined it would be....

Comment by nike papucsok

nike papucsok...

I think the issue is not as black-and-white as I originally imagined it would be....

Comment by nike magasszárú

nike magasszárú...

and you are making $30,000 now at a job you hate that is a good deal. Also like to have cut baits such as crayfish meat. "Within that a financial crisis individuals are seriously keep locate outside equipment, provisional break free of from your impor...

Comment by nike air max cipő

nike air max cipő...

reduced or absolutely no lighting and then you also have to contend with the blinding lamps coming at you from other motorists. A final hearing is scheduled for September 12. Three years after he left HP behind for good, Packard passed away....

Comment by air max 1

air max 1...

reduced or absolutely no lighting and then you also have to contend with the blinding lamps coming at you from other motorists. A final hearing is scheduled for September 12. Three years after he left HP behind for good, Packard passed away....

Comment by devergo férfi cipő

devergo férfi cipő...

It is beneficial to a website to make sure your profit and increase customer appreciation. Family Health GuideTo take advantage of the latest medical advances, and to deal with the often-confusing world of heath care, you need information that is clear...

Comment by fake oakley sunglasses

fake oakley sunglasses...

the most important factor shall be working in honest good faith....

Comment by Michael Kors Outlet

Michael Kors Outlet...

Your house is valueble for me. Thanks!?...

Comment by Oakley Sunglasses WholeSale

Oakley Sunglasses WholeSale...

a very powerful factor shall be working in sincere good faith....

Comment by ニューバランス 574 紺

ニューバランス 574 紺...

銉嬨儱銉笺儛銉┿兂銈?mw1500[url=http://www.utensilsdirect.co.uk/100719440388.html]銉嬨儱銉笺儛銉┿兂銈?mw1500[/url]銉嬨儱銉笺儛銉┿兂銈?銈广儖銉笺偒銉?abc銉炪兗銉?/a>[url=http://www.utensilsdirect.co.uk/1007194403140.html]銉嬨儱銉笺儛銉┿兂銈?銈广儖銉笺偒銉?abc銉炪兗銉圼/url]銉嬨儱銉笺儛銉┿兂銈?996 銉儑銈c兗銈?浜烘皸[url=http://w...

Comment by エアジョーダン 45

エアジョーダン 45...

銈ㄣ偄銈搞儳銉笺儉銉?銉兗銈儍銉?/a>[url=www.whycyprus.com/connections/1008154114655.html]銈ㄣ偄銈搞儳銉笺儉銉?銉兗銈儍銉圼/url]銈ㄣ偄銈搞儳銉笺儉銉?鍙栨壉搴?鍚嶅彜灞?/a>[url=www.whycyprus.com/connections/1008154114796.html]銈ㄣ偄銈搞儳銉笺儉銉?鍙栨壉搴?鍚嶅彜灞媅/url]銉炪偆銈便儷銈搞儳銉笺儉銉?銉曘儶銉笺偣銉兗[url=http:/...

Comment by エアジョーダン 94年復刻

エアジョーダン 94年復刻...

銈搞儳銉笺儉銉?銉愩儍銈枫儱 鍋界墿[url=www.ducksdrift.co.uk/xyiznwsk/1008154202454.html]銈搞儳銉笺儉銉?銉愩儍銈枫儱 鍋界墿[/url]銈搞儳銉笺儉銉?銉愩儍銈枫儱 銉曘儵銈ゃ偊銈с偆銉?/a>[url=www.ducksdrift.co.uk/xyiznwsk/1008154202594.html]銈搞儳銉笺儉銉?銉愩儍銈枫儱 銉曘儵銈ゃ偊銈с偆銉塠/url]銈搞儳銉笺儉銉炽偣銉斻兗銈?銈广偆銉炽偘[url=htt...

Comment by ジョーダン スニーカー 激安

ジョーダン スニーカー 激安...

銈搞儳銉笺儉銉炽儥銉儠銈┿兗銉?銈汇儫銉娿兗[url=www.southdevongym.co.uk/shop/1008154159615.html]銈搞儳銉笺儉銉炽儥銉儠銈┿兗銉?銈汇儫銉娿兗[/url]銈搞儳銉笺儉銉炽儥銉儠銈┿兗銉?鍑烘紨[url=www.southdevongym.co.uk/shop/1008154159771.html]銈搞儳銉笺儉銉炽儥銉儠銈┿兗銉?鍑烘紨[/url]銈搞儳銉笺儉銉炽儥銉儠銈┿兗銉?鍚嶈█[url=http://ww...

Comment by ニューバランス フィットネスシューズ

ニューバランス フィットネスシューズ...

銈广儖銉笺偒銉?銉嬨儱銉笺儛銉┿兂銈?574[url=http://www.tireeimages.com/wap/1007194412477.html]銈广儖銉笺偒銉?銉嬨儱銉笺儛銉┿兂銈?574[/url]abc銉炪兗銉堥檺瀹?銉嬨儱銉笺儛銉┿兂銈?/a>[url=http://www.tireeimages.com/wap/1007194412522.html]abc銉炪兗銉堥檺瀹?銉嬨儱銉笺儛銉┿兂銈筟/url]銉嬨儱銉笺儛銉┿兂銈?574 銉儑銈c兗銈?浜烘皸[url=http://ww...

Comment by ニューバランス ランニングシューズ 初心者

ニューバランス ランニングシューズ 初心者...

銉嬨儱銉笺儛銉┿兂銈?鐧诲北闈?/a>[url=www.81beachstreet.co.uk/.../1007194526484.html]銉嬨儱銉笺儛銉┿兂銈?鐧诲北闈碵/url]銉嬨儱銉笺儛銉┿兂銈?銈偗銈偡銉ャ兗銈?/a>[url=www.81beachstreet.co.uk/.../1007194526596.html]銉嬨儱銉笺儛銉┿兂銈?銈偗銈偡銉ャ兗銈篬/url]銉嬨儱銉笺儛銉┿兂銈?銈︺偐銉笺偪銉笺偡銉ャ兗銈?/...

Comment by モンクレール ライトダウン

モンクレール ライトダウン...

銉兂銈儸銉笺儷 銈炽兗銉?/a>[url=http://sportlab.es/fotos/1026224311815.html]銉兂銈儸銉笺儷 銈炽兗銉圼/url]銉兂銈儸銉笺儷 瀹氱暘[url=http://sportlab.es/fotos/1026224311831.html]銉兂銈儸銉笺儷 瀹氱暘[/url]銉兂銈儸銉笺儷 杩峰僵[url=http://sportlab.es/fotos/1026224311846.html]銉兂銈儸銉笺儷 杩峰僵[/url]銉€銈...