<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: How to call a block after a delay	</title>
	<atom:link href="https://richardwarrender.com/2012/02/how-to-call-block-after-delay/feed/" rel="self" type="application/rss+xml" />
	<link>https://richardwarrender.com/2012/02/how-to-call-block-after-delay/</link>
	<description>Creative Thinking, Clear Engineering</description>
	<lastBuildDate>Wed, 16 Jan 2019 06:07:54 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.9</generator>
	<item>
		<title>
		By: Anonymous		</title>
		<link>https://richardwarrender.com/2012/02/how-to-call-block-after-delay/#comment-79359</link>

		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Wed, 16 Jan 2019 06:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://richardwarrender.com/?p=412#comment-79359</guid>

					<description><![CDATA[thanks i need this]]></description>
			<content:encoded><![CDATA[<p>thanks i need this</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anonymous		</title>
		<link>https://richardwarrender.com/2012/02/how-to-call-block-after-delay/#comment-79168</link>

		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Tue, 18 Sep 2018 12:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://richardwarrender.com/?p=412#comment-79168</guid>

					<description><![CDATA[thx!]]></description>
			<content:encoded><![CDATA[<p>thx!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anonymous		</title>
		<link>https://richardwarrender.com/2012/02/how-to-call-block-after-delay/#comment-77405</link>

		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Tue, 01 Dec 2015 22:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://richardwarrender.com/?p=412#comment-77405</guid>

					<description><![CDATA[Here is how you can trigger a block after a delay in Swift:

    runThisAfterDelay(seconds: 2) { () -&#062; () in
        print(&quot;Prints this 2 seconds later in main queue&quot;)
    }

    /// EZSwiftExtensions
    func runThisAfterDelay(seconds seconds: Double, after: () -&#062; ()) {
        let time = dispatch_time(DISPATCH_TIME_NOW, Int64(seconds * Double(NSEC_PER_SEC)))
        dispatch_after(time, dispatch_get_main_queue(), after)
    }
   
Its included as a standard function in my repo:
https://github.com/goktugyil/EZSwiftExtensions]]></description>
			<content:encoded><![CDATA[<p>Here is how you can trigger a block after a delay in Swift:</p>
<p>    runThisAfterDelay(seconds: 2) { () -&gt; () in<br />
        print(&#8220;Prints this 2 seconds later in main queue&#8221;)<br />
    }</p>
<p>    /// EZSwiftExtensions<br />
    func runThisAfterDelay(seconds seconds: Double, after: () -&gt; ()) {<br />
        let time = dispatch_time(DISPATCH_TIME_NOW, Int64(seconds * Double(NSEC_PER_SEC)))<br />
        dispatch_after(time, dispatch_get_main_queue(), after)<br />
    }</p>
<p>Its included as a standard function in my repo:<br />
<a href="https://github.com/goktugyil/EZSwiftExtensions" rel="nofollow ugc">https://github.com/goktugyil/EZSwiftExtensions</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Keith		</title>
		<link>https://richardwarrender.com/2012/02/how-to-call-block-after-delay/#comment-7422</link>

		<dc:creator><![CDATA[Keith]]></dc:creator>
		<pubDate>Tue, 26 Feb 2013 14:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://richardwarrender.com/?p=412#comment-7422</guid>

					<description><![CDATA[Thanks for this, just what I was looking for!]]></description>
			<content:encoded><![CDATA[<p>Thanks for this, just what I was looking for!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Florian Picca		</title>
		<link>https://richardwarrender.com/2012/02/how-to-call-block-after-delay/#comment-7183</link>

		<dc:creator><![CDATA[Florian Picca]]></dc:creator>
		<pubDate>Wed, 31 Oct 2012 10:45:24 +0000</pubDate>
		<guid isPermaLink="false">http://richardwarrender.com/?p=412#comment-7183</guid>

					<description><![CDATA[Thank you! :)]]></description>
			<content:encoded><![CDATA[<p>Thank you! :)</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Minified using Disk
Database Caching 29/36 queries in 0.010 seconds using Memcached

Served from: richardwarrender.com @ 2026-05-03 12:28:18 by W3 Total Cache
-->