<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://50.77.162.165/mediawiki/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Miranda whenBroken - Revision history</title>
		<link>http://50.77.162.165/mediawiki/index.php?title=Miranda_whenBroken&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.5-7</generator>
		<lastBuildDate>Tue, 05 May 2026 12:07:10 GMT</lastBuildDate>
		<item>
			<title>Kevin Reid at 03:08, 7 August 2011</title>
			<link>http://50.77.162.165/mediawiki/index.php?title=Miranda_whenBroken&amp;diff=2159&amp;oldid=prev</link>
			<guid>http://50.77.162.165/mediawiki/index.php?title=Miranda_whenBroken&amp;diff=2159&amp;oldid=prev</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''__whenBroken/1''' is a [[Miranda message]] for determining when a reference has become a [[broken reference]].&lt;br /&gt;
&lt;br /&gt;
{{instance msgdoc|__whenBroken|1|&amp;lt;var&amp;gt;reactor&amp;lt;/var&amp;gt; :[[OneArgFunc]]|[[void]]}}&lt;br /&gt;
&lt;br /&gt;
Notify the &amp;lt;var&amp;gt;reactor&amp;lt;/var&amp;gt; when the reference has transitioned to the [[broken]] state.&lt;br /&gt;
&lt;br /&gt;
* The Miranda method ignores the argument and returns null, as a near reference cannot become broken.&lt;br /&gt;
* If the recipient is an [[eventual ref]], then the message should not be forwarded, but the reactor should be stored for use as follows. (This forms part of the expected behavior of any [[proxy]] handler.)&lt;br /&gt;
** If it becomes broken, &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;reactor&amp;lt;/var&amp;gt; &amp;amp;lt;- run(&amp;lt;var&amp;gt;problem&amp;lt;/var&amp;gt;)&amp;lt;/code&amp;gt; should be performed for every __whenBroken message previously received.&lt;br /&gt;
** If it becomes resolved to another ref, then it should forward every __whenBroken message it received to the target.&lt;br /&gt;
&lt;br /&gt;
==Original Javadoc==&lt;br /&gt;
&lt;br /&gt;
{{XXX|merge}}&lt;br /&gt;
&lt;br /&gt;
Used to implement &amp;quot;Ref whenBroken/2&amp;quot;; it should not be called directly.&lt;br /&gt;
&lt;br /&gt;
The Miranda behavior ignores the message, as only breakable ref&lt;br /&gt;
implementations ever respond to this message.&lt;br /&gt;
&lt;br /&gt;
See also:  [[Ref#whenBroken/2]]&lt;br /&gt;
&lt;br /&gt;
==Tests==&lt;br /&gt;
&lt;br /&gt;
{{XXX|Write tests}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Miranda messages]]&lt;br /&gt;
[[Category:Pluribus]]&lt;/div&gt;</description>
			<pubDate>Sun, 07 Aug 2011 03:08:27 GMT</pubDate>			<dc:creator>Kevin Reid</dc:creator>			<comments>http://50.77.162.165/wiki/Talk:Miranda_whenBroken</comments>		</item>
	</channel>
</rss>