Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Commit c00555f

Browse files
author
Jack Tang
committed
Release 0.1.0
1 parent ae4ba4a commit c00555f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

docs/index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ <h1 class="title">threadproxy</h1>
193193
<li><a class="reference" href="#getChannel%2CThreadProxy%2Cstring"
194194
title="getChannel(proxy: ThreadProxy; name: string): Future[ThreadChannelPtr]"><wbr />get<wbr />Channel<span class="attachedType">ThreadProxy</span></a></li>
195195
<li><a class="reference" href="#send%2CThreadProxy%2Cstring%2Cstring%2CJsonNode"
196-
title="send(proxy: ThreadProxy; target: string; action: string; data: JsonNode): Future[void]"><wbr />send<span class="attachedType">ThreadProxy</span></a></li>
196+
title="send(proxy: ThreadProxy; target: string; action: string; data: JsonNode = nil): Future[
197+
void]"><wbr />send<span class="attachedType">ThreadProxy</span></a></li>
197198
<li><a class="reference" href="#ask%2CThreadProxy%2Cstring%2Cstring%2CJsonNode"
198199
title="ask(proxy: ThreadProxy; target: string; action: string; data: JsonNode = nil): Future[
199200
JsonNode]"><wbr />ask<span class="attachedType">ThreadProxy</span></a></li>
@@ -472,7 +473,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
472473

473474
</dd>
474475
<a id="send,ThreadProxy,string,string,JsonNode"></a>
475-
<dt><pre><span class="Keyword">proc</span> <a href="#send%2CThreadProxy%2Cstring%2Cstring%2CJsonNode"><span class="Identifier">send</span></a><span class="Other">(</span><span class="Identifier">proxy</span><span class="Other">:</span> <a href="threadproxy.html#ThreadProxy"><span class="Identifier">ThreadProxy</span></a><span class="Other">;</span> <span class="Identifier">target</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">action</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">data</span><span class="Other">:</span> <span class="Identifier">JsonNode</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span>
476+
<dt><pre><span class="Keyword">proc</span> <a href="#send%2CThreadProxy%2Cstring%2Cstring%2CJsonNode"><span class="Identifier">send</span></a><span class="Other">(</span><span class="Identifier">proxy</span><span class="Other">:</span> <a href="threadproxy.html#ThreadProxy"><span class="Identifier">ThreadProxy</span></a><span class="Other">;</span> <span class="Identifier">target</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">action</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">data</span><span class="Other">:</span> <span class="Identifier">JsonNode</span> <span class="Other">=</span> <span class="Keyword">nil</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span>
476477
<span class="Identifier">void</span><span class="Other">]</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">FutureError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
477478
<dd>
478479

@@ -503,8 +504,9 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
503504

504505
</dd>
505506
<a id="poll,ThreadProxy,int"></a>
506-
<dt><pre><span class="Keyword">proc</span> <a href="#poll%2CThreadProxy%2Cint"><span class="Identifier">poll</span></a><span class="Other">(</span><span class="Identifier">proxy</span><span class="Other">:</span> <a href="threadproxy.html#ThreadProxy"><span class="Identifier">ThreadProxy</span></a><span class="Other">;</span> <span class="Identifier">interval</span><span class="Other">:</span> <span class="Identifier">int</span> <span class="Other">=</span> <span class="DecNumber">16</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma">
507-
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">FutureError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">TimeEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
507+
<dt><pre><span class="Keyword">proc</span> <a href="#poll%2CThreadProxy%2Cint"><span class="Identifier">poll</span></a><span class="Other">(</span><span class="Identifier">proxy</span><span class="Other">:</span> <a href="threadproxy.html#ThreadProxy"><span class="Identifier">ThreadProxy</span></a><span class="Other">;</span> <span class="Identifier">interval</span><span class="Other">:</span> <span class="Identifier">int</span> <span class="Other">=</span> <span class="DecNumber">16</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">ValueError</span><span class="Other">,</span>
508+
<span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">FutureError</span><span class="Other">,</span> <span class="Identifier">DeadThreadError</span><span class="Other">,</span> <span class="Identifier">Defect</span><span class="Other">]</span><span class="Other">,</span>
509+
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">TimeEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
508510
<dd>
509511

510512

@@ -556,7 +558,7 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
556558
<div class="twelve-columns footer">
557559
<span class="nim-sprite"></span>
558560
<br/>
559-
<small style="color: var(--hint);">Made with Nim. Generated: 2020-05-17 02:31:56 UTC</small>
561+
<small style="color: var(--hint);">Made with Nim. Generated: 2020-05-23 10:34:47 UTC</small>
560562
</div>
561563
</div>
562564
</div>

threadproxy.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "0.0.2"
3+
version = "0.1.0"
44
author = "Jack Tang"
55
description = "Simplify Nim Inter-Thread Communication"
66
license = "MIT"

0 commit comments

Comments
 (0)