<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.easyuo.com/openeuo/wiki/index.php?action=history&amp;feed=atom&amp;title=Spin.till</id>
		<title>Spin.till - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.easyuo.com/openeuo/wiki/index.php?action=history&amp;feed=atom&amp;title=Spin.till"/>
		<link rel="alternate" type="text/html" href="http://www.easyuo.com/openeuo/wiki/index.php?title=Spin.till&amp;action=history"/>
		<updated>2026-05-13T20:01:47Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>http://www.easyuo.com/openeuo/wiki/index.php?title=Spin.till&amp;diff=1201&amp;oldid=prev</id>
		<title>Ximan: /* See Also */</title>
		<link rel="alternate" type="text/html" href="http://www.easyuo.com/openeuo/wiki/index.php?title=Spin.till&amp;diff=1201&amp;oldid=prev"/>
				<updated>2011-01-09T00:23:20Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See Also&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 00:23, 9 January 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l41&quot; &gt;Line 41:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[chain]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[chain]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;statemachine&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;machine&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ximan</name></author>	</entry>

	<entry>
		<id>http://www.easyuo.com/openeuo/wiki/index.php?title=Spin.till&amp;diff=1074&amp;oldid=prev</id>
		<title>Ximan: Created page with &quot;== Calling Pattern == Call  local r = sl.spin(a[, b[, ...]]) later  local v,t = r.till(d[,c[, ...]]) Args  d is a number, the timeout in milliseconds  c0..cN are an indefinite nu...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.easyuo.com/openeuo/wiki/index.php?title=Spin.till&amp;diff=1074&amp;oldid=prev"/>
				<updated>2010-11-25T03:29:18Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Calling Pattern == Call  local r = sl.spin(a[, b[, ...]]) later  local v,t = r.till(d[,c[, ...]]) Args  d is a number, the timeout in milliseconds  c0..cN are an indefinite nu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Calling Pattern ==&lt;br /&gt;
Call&lt;br /&gt;
 local r = sl.spin(a[, b[, ...]])&lt;br /&gt;
later&lt;br /&gt;
 local v,t = r.till(d[,c[, ...]])&lt;br /&gt;
Args&lt;br /&gt;
 d is a number, the timeout in milliseconds&lt;br /&gt;
 c0..cN are an indefinite number of variadic arguments of any type&lt;br /&gt;
Results&lt;br /&gt;
 v is any type&lt;br /&gt;
 t is a number&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
The spin till method repeatedly calls (around 10 times per second) the function a passed to the spin constructor until such time as it returns a non-nil value or the timeout duration d is exceeded.&lt;br /&gt;
&lt;br /&gt;
At each cycle of evaluation, till supplies its variadic arguments to all of the functions b0...bM passed to the constructor and evaluates them.  The first result of each is passed as an argument to a in the same order. Then c0...cN, if any, round out the remainder of arguments passed to function a. E.g.,&lt;br /&gt;
&lt;br /&gt;
 v = a([b0([c0,...cN]),...bM([c0,...cN])][, c0,...cN])&lt;br /&gt;
&lt;br /&gt;
If an argument b was specified which is not a function, it is simply passed as value, unless it is nil in which case it is converted to [[null]] first.&lt;br /&gt;
&lt;br /&gt;
Till evaluates at least one cycle, and terminates upon any non-nil result v or if the specified timeout duration d is exceeded. The time elapsed during the till operation, t, is passed back as well.&lt;br /&gt;
&lt;br /&gt;
== Upon Error ==&lt;br /&gt;
&lt;br /&gt;
If one of the passed functions throws an error during evaluation, an unhandled exception will occur.  In version 0.06, any errors thrown will be caught at the spin.till level and handled according to the operant error redirection mode.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib]&lt;br /&gt;
&lt;br /&gt;
* [[case]]&lt;br /&gt;
&lt;br /&gt;
* [[iterator]]&lt;br /&gt;
&lt;br /&gt;
* [[spin]]&lt;br /&gt;
&lt;br /&gt;
* [[spin.hold]]&lt;br /&gt;
&lt;br /&gt;
* [[chain]]&lt;br /&gt;
&lt;br /&gt;
* [[statemachine]]&lt;/div&gt;</summary>
		<author><name>Ximan</name></author>	</entry>

	</feed>