ruff 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfebb70cd49dd7912799a61968e781995e766b2ebf9c31d9bcd0e37e906428bc
4
- data.tar.gz: 688639673c9ca99111482a18aa8f4a18f4e1b450ad628eee645df6f0bfd57c0e
3
+ metadata.gz: 2c541c98e8cefb8f69e7aeadcd951ed4dbd03860e5249e71bd4fc2c74dea920d
4
+ data.tar.gz: 6f624a039f35fbcd75369087963fbc2c000581bef27be6fb1f72e14a2298dfba
5
5
  SHA512:
6
- metadata.gz: 76b93cc1a843dc47a00692e3ca4b011113e47d804bbe4e71c7933e8ca02a583f10b6632f10bac013035531294cdeaf6cee3a4c3e5768175e6e14a3c0cfe2ad93
7
- data.tar.gz: 43f9b5c94fd98da4c9d1f248392cd775eab21110640fa963183a3a95802b7e90a95acb2a685c697244ebec8c0f5d70d5506ba66a3b83b6685dd5877d6b6b04a4
6
+ metadata.gz: 64d2f14e420e819219ea97930431b5c406fbc44c80b0d35ad74bdb0dd612d56beabac7312f8abfaf8adecfb687935f8bfa36b84d870453b58441098ed15bb759
7
+ data.tar.gz: 11f9aba550098c5c6f46489fbcc3c742c06eabfd95f346f1587071ba963a5b4927a7d40f2e76da947f034a598825196b6e6f6be00c2202b7e3b965015dd4116f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruff (1.1.0)
4
+ ruff (1.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -80,6 +80,8 @@ Defer.with {
80
80
  - `Ruff::Standard::State`
81
81
  - `Ruff::Standard::Defer`
82
82
  - `Ruff::Standard::CurrentTime`
83
+ - `Ruff::Standard::MeasureTime`
84
+ - `Ruff::Standard::Async`
83
85
 
84
86
  # LICENSE
85
87
  MIT
data/Rakefile CHANGED
@@ -3,30 +3,65 @@
3
3
  require 'bundler/gem_tasks'
4
4
  require 'rubocop/rake_task'
5
5
  require 'yard'
6
- # require 'ruff/version'
6
+ require 'ruff/version'
7
+
8
+ YARDOPTS = [
9
+ '--output-dir=docs',
10
+ "--title=Ruff #{Ruff::VERSION} Documentation",
11
+ '--markup-provider=redcarpet',
12
+ '--markup=markdown',
13
+ '--charset=utf-8'
14
+ ].freeze
7
15
 
8
16
  RuboCop::RakeTask.new
9
17
 
10
18
  YARD::Rake::YardocTask.new do |doc|
11
19
  doc.name = 'doc'
12
20
 
13
- [
14
- '--output-dir=docs',
15
- "--title=Ruff #{Ruff::VERSION} Documentation",
16
- '--markup-provider=redcarpet',
17
- '--markup=markdown',
18
- '--charset=utf-8'
19
- ].each { |opt| doc.options << opt }
21
+ YARDOPTS.each { |opt| doc.options << opt }
20
22
 
21
- doc.files = FileList.new 'lib/**/*.rb'
23
+ doc.files = FileList.new('lib/**/*.rb').exclude('**/util.rb')
22
24
  end
23
25
 
24
26
  desc 'new version'
25
27
  task(:newver, %i[major minor patch]) do |_, args|
26
- File.open('version', 'r+') do |f|
27
- f.write args.to_a.join '.'
28
+ f = File.open('version', 'r+')
29
+ v = f.read.gsub(/[^a-zA-Z0-9\-_\.]/, '').split '.'
30
+ newv = args.to_a.dup
31
+
32
+ begin
33
+ case newv[0]
34
+ when '-'
35
+ newv[0] = v[0]
36
+
37
+ case newv[1]
38
+ when '-'
39
+ newv[1] = v[1]
40
+
41
+ case newv[2]
42
+ when '+'
43
+ newv[2] = v[2].to_i + 1
44
+ end
45
+ when '+'
46
+ newv[1] = v[1].to_i + 1
47
+ newv[2] = 0
48
+ else
49
+ newv[2] = 0
50
+ end
51
+ when '+'
52
+ newv[0] = v[0].to_i + 1
53
+ newv[1] = 0
54
+ newv[2] = 0
55
+ end
56
+ rescue StandardError => e
57
+ puts e
28
58
  end
29
59
 
60
+ p "#{v.join '.'} => #{newv.join '.'}"
61
+ f.seek(0, IO::SEEK_SET)
62
+ f.write newv.join '.'
63
+ f.close
64
+
30
65
  sh 'bash lib/ruff/version.gen.sh > lib/ruff/version.rb'
31
66
  end
32
67
 
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Ruff
8
8
 
9
- &mdash; Ruff 1.1.0 Documentation
9
+ &mdash; Ruff 1.3.0 Documentation
10
10
 
11
11
  </title>
12
12
 
@@ -109,7 +109,7 @@
109
109
  <dt id="VERSION-constant" class="">VERSION =
110
110
 
111
111
  </dt>
112
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>1.1.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>
112
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>1.3.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>
113
113
 
114
114
  </dl>
115
115
 
@@ -301,7 +301,7 @@
301
301
  </div>
302
302
 
303
303
  <div id="footer">
304
- Generated on Fri Oct 4 21:12:21 2019 by
304
+ Generated on Sun Oct 6 23:09:11 2019 by
305
305
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
306
306
  0.9.20 (ruby-2.6.5).
307
307
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Ruff::Effect
8
8
 
9
- &mdash; Ruff 1.1.0 Documentation
9
+ &mdash; Ruff 1.3.0 Documentation
10
10
 
11
11
  </title>
12
12
 
@@ -404,7 +404,7 @@
404
404
  </div>
405
405
 
406
406
  <div id="footer">
407
- Generated on Fri Oct 4 21:12:21 2019 by
407
+ Generated on Sun Oct 6 23:09:11 2019 by
408
408
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
409
409
  0.9.20 (ruby-2.6.5).
410
410
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Ruff::Handler
8
8
 
9
- &mdash; Ruff 1.1.0 Documentation
9
+ &mdash; Ruff 1.3.0 Documentation
10
10
 
11
11
  </title>
12
12
 
@@ -294,13 +294,13 @@ Value handler is set <code>id</code> function to by default.</p>
294
294
  <pre class="lines">
295
295
 
296
296
 
297
+ 14
298
+ 15
297
299
  16
298
- 17
299
- 18
300
- 19</pre>
300
+ 17</pre>
301
301
  </td>
302
302
  <td>
303
- <pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 16</span>
303
+ <pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 14</span>
304
304
 
305
305
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
306
306
  <span class='ivar'>@handlers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
@@ -343,12 +343,12 @@ Value handler is set <code>id</code> function to by default.</p>
343
343
  <pre class="lines">
344
344
 
345
345
 
346
- 113
347
- 114
348
- 115</pre>
346
+ 111
347
+ 112
348
+ 113</pre>
349
349
  </td>
350
350
  <td>
351
- <pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 113</span>
351
+ <pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 111</span>
352
352
 
353
353
  <span class='kw'>def</span> <span class='id identifier rubyid_handlers='>handlers=</span><span class='lparen'>(</span><span class='id identifier rubyid_handlers'>handlers</span><span class='rparen'>)</span>
354
354
  <span class='ivar'>@handlers</span> <span class='op'>=</span> <span class='id identifier rubyid_handlers'>handlers</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
@@ -447,14 +447,14 @@ to go back to the handled computation.</p>
447
447
  <pre class="lines">
448
448
 
449
449
 
450
+ 75
451
+ 76
450
452
  77
451
453
  78
452
- 79
453
- 80
454
- 81</pre>
454
+ 79</pre>
455
455
  </td>
456
456
  <td>
457
- <pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 77</span>
457
+ <pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 75</span>
458
458
 
459
459
  <span class='kw'>def</span> <span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_eff'>eff</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_fun'>fun</span><span class='rparen'>)</span>
460
460
  <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id identifier rubyid_eff'>eff</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_fun'>fun</span>
@@ -552,14 +552,14 @@ or returned from the effect handler throwing continuation away</p>
552
552
  <pre class="lines">
553
553
 
554
554
 
555
+ 104
556
+ 105
555
557
  106
556
558
  107
557
- 108
558
- 109
559
- 110</pre>
559
+ 108</pre>
560
560
  </td>
561
561
  <td>
562
- <pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 106</span>
562
+ <pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 104</span>
563
563
 
564
564
  <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_prc'>prc</span><span class='rparen'>)</span>
565
565
  <span class='id identifier rubyid_co'>co</span> <span class='op'>=</span> <span class='const'>Fiber</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_prc'>prc</span><span class='rparen'>)</span>
@@ -662,14 +662,14 @@ in effect handlers of the handler.</p>
662
662
  <pre class="lines">
663
663
 
664
664
 
665
+ 53
666
+ 54
665
667
  55
666
668
  56
667
- 57
668
- 58
669
- 59</pre>
669
+ 57</pre>
670
670
  </td>
671
671
  <td>
672
- <pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 55</span>
672
+ <pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 53</span>
673
673
 
674
674
  <span class='kw'>def</span> <span class='id identifier rubyid_to'>to</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_fun'>fun</span><span class='rparen'>)</span>
675
675
  <span class='ivar'>@valh</span> <span class='op'>=</span> <span class='id identifier rubyid_fun'>fun</span>
@@ -686,7 +686,7 @@ in effect handlers of the handler.</p>
686
686
  </div>
687
687
 
688
688
  <div id="footer">
689
- Generated on Fri Oct 4 21:12:21 2019 by
689
+ Generated on Sun Oct 6 23:09:11 2019 by
690
690
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
691
691
  0.9.20 (ruby-2.6.5).
692
692
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Ruff::Standard
8
8
 
9
- &mdash; Ruff 1.1.0 Documentation
9
+ &mdash; Ruff 1.3.0 Documentation
10
10
 
11
11
  </title>
12
12
 
@@ -117,7 +117,7 @@ Each module provides <code>Instance</code> class to instantiate and handle the i
117
117
  <p class="children">
118
118
 
119
119
 
120
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Standard/CurrentTime.html" title="Ruff::Standard::CurrentTime (module)">CurrentTime</a></span>, <span class='object_link'><a href="Standard/Defer.html" title="Ruff::Standard::Defer (module)">Defer</a></span>, <span class='object_link'><a href="Standard/MeasureTime.html" title="Ruff::Standard::MeasureTime (module)">MeasureTime</a></span>, <span class='object_link'><a href="Standard/State.html" title="Ruff::Standard::State (module)">State</a></span>
120
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Standard/Async.html" title="Ruff::Standard::Async (module)">Async</a></span>, <span class='object_link'><a href="Standard/CurrentTime.html" title="Ruff::Standard::CurrentTime (module)">CurrentTime</a></span>, <span class='object_link'><a href="Standard/Defer.html" title="Ruff::Standard::Defer (module)">Defer</a></span>, <span class='object_link'><a href="Standard/MeasureTime.html" title="Ruff::Standard::MeasureTime (module)">MeasureTime</a></span>, <span class='object_link'><a href="Standard/State.html" title="Ruff::Standard::State (module)">State</a></span>
121
121
 
122
122
 
123
123
 
@@ -135,7 +135,7 @@ Each module provides <code>Instance</code> class to instantiate and handle the i
135
135
  </div>
136
136
 
137
137
  <div id="footer">
138
- Generated on Fri Oct 4 21:12:21 2019 by
138
+ Generated on Sun Oct 6 23:09:11 2019 by
139
139
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
140
140
  0.9.20 (ruby-2.6.5).
141
141
  </div>
@@ -0,0 +1,546 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Module: Ruff::Standard::Async
8
+
9
+ &mdash; Ruff 1.3.0 Documentation
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Ruff::Standard::Async";
19
+ relpath = '../../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../../_index.html">Index (A)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Ruff.html" title="Ruff (module)">Ruff</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Standard.html" title="Ruff::Standard (module)">Standard</a></span></span>
41
+ &raquo;
42
+ <span class="title">Async</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Module: Ruff::Standard::Async
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ <dl>
80
+ <dt>Defined in:</dt>
81
+ <dd>lib/ruff/standard/async.rb</dd>
82
+ </dl>
83
+
84
+ </div>
85
+
86
+ <h2>Overview</h2><div class="docstring">
87
+ <div class="discussion">
88
+ <p><code>Async</code> provides effects <code>Async.async</code>, <code>Async.yield</code> and <code>Async.await</code>, and the implementation async/await.
89
+ This implementation is based on the tutorial for Multicore OCaml.
90
+ The module has an instance of <code>Instance</code> and provides its methods as module method.</p>
91
+
92
+
93
+ </div>
94
+ </div>
95
+ <div class="tags">
96
+
97
+ <div class="examples">
98
+ <p class="tag_title">Examples:</p>
99
+
100
+
101
+ <pre class="example code"><code><span class='const'>Async</span><span class='period'>.</span><span class='id identifier rubyid_with'><span class='object_link'><a href="#with-class_method" title="Ruff::Standard::Async.with (method)">with</a></span></span> <span class='kw'>do</span>
102
+ <span class='id identifier rubyid_task'>task</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='op'>|</span>
103
+ <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span>
104
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Starting </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
105
+ <span class='id identifier rubyid_v'>v</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='const'>Random</span><span class='period'>.</span><span class='id identifier rubyid_rand'>rand</span> <span class='op'>*</span> <span class='lparen'>(</span><span class='int'>10</span><span class='op'>**</span><span class='int'>3</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_floor'>floor</span>
106
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Yielding </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
107
+ <span class='const'>Async</span><span class='period'>.</span><span class='id identifier rubyid_yield'><span class='object_link'><a href="#yield-class_method" title="Ruff::Standard::Async.yield (method)">yield</a></span></span>
108
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Eidnig </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'> with </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_v'>v</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
109
+
110
+ <span class='id identifier rubyid_v'>v</span>
111
+ <span class='rbrace'>}</span>
112
+ <span class='rbrace'>}</span>
113
+
114
+ <span class='id identifier rubyid_pa'>pa</span> <span class='op'>=</span> <span class='const'>Async</span><span class='period'>.</span><span class='id identifier rubyid_async'><span class='object_link'><a href="#async-class_method" title="Ruff::Standard::Async.async (method)">async</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_task'>task</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>a</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
115
+ <span class='id identifier rubyid_pb'>pb</span> <span class='op'>=</span> <span class='const'>Async</span><span class='period'>.</span><span class='id identifier rubyid_async'><span class='object_link'><a href="#async-class_method" title="Ruff::Standard::Async.async (method)">async</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_task'>task</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>b</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
116
+ <span class='id identifier rubyid_pc'>pc</span> <span class='op'>=</span> <span class='const'>Async</span><span class='period'>.</span><span class='id identifier rubyid_async'><span class='object_link'><a href="#async-class_method" title="Ruff::Standard::Async.async (method)">async</a></span></span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span>
117
+ <span class='const'>Async</span><span class='period'>.</span><span class='id identifier rubyid_await'><span class='object_link'><a href="#await-class_method" title="Ruff::Standard::Async.await (method)">await</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_pa'>pa</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='const'>Async</span><span class='period'>.</span><span class='id identifier rubyid_await'><span class='object_link'><a href="#await-class_method" title="Ruff::Standard::Async.await (method)">await</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_pb'>pb</span><span class='rparen'>)</span>
118
+ <span class='rbrace'>}</span>
119
+
120
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>sum is </span><span class='embexpr_beg'>#{</span><span class='const'>Async</span><span class='period'>.</span><span class='id identifier rubyid_await'><span class='object_link'><a href="#await-class_method" title="Ruff::Standard::Async.await (method)">await</a></span></span> <span class='id identifier rubyid_pc'>pc</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
121
+ <span class='kw'>end</span>
122
+ <span class='comment'>#==&gt;
123
+ </span><span class='comment'># Starting a
124
+ </span><span class='comment'># Yielding a
125
+ </span><span class='comment'># Eidnig a with 423
126
+ </span><span class='comment'># Starting b
127
+ </span><span class='comment'># Yielding b
128
+ </span><span class='comment'># Eidnig b with 793
129
+ </span><span class='comment'># sum is 1216</span></code></pre>
130
+
131
+ </div>
132
+
133
+
134
+ <p class="tag_title">See Also:</p>
135
+ <ul class="see">
136
+
137
+ <li><a href="https://github.com/ocamllabs/ocaml-effects-tutorial/blob/master/sources/solved/async_await.ml" target="_parent" title="https://github.com/ocamllabs/ocaml-effects-tutorial/blob/master/sources/solved/async_await.ml">https://github.com/ocamllabs/ocaml-effects-tutorial/blob/master/sources/solved/async_await.ml</a></li>
138
+
139
+ <li><span class='object_link'><a href="Async/Instance.html" title="Ruff::Standard::Async::Instance (class)">Instance</a></span></li>
140
+
141
+ </ul>
142
+
143
+ </div><h2>Defined Under Namespace</h2>
144
+ <p class="children">
145
+
146
+
147
+
148
+
149
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Async/Instance.html" title="Ruff::Standard::Async::Instance (class)">Instance</a></span>
150
+
151
+
152
+ </p>
153
+
154
+
155
+
156
+
157
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
158
+ <ul class="summary">
159
+
160
+ <li class="public ">
161
+ <span class="summary_signature">
162
+
163
+ <a href="#eff-instance_method" title="#eff (instance method)">#<strong>eff</strong> &#x21d2; Object </a>
164
+
165
+
166
+
167
+ </span>
168
+
169
+
170
+
171
+
172
+ <span class="note title readonly">readonly</span>
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+ <span class="summary_desc"><div class='inline'></div></span>
183
+
184
+ </li>
185
+
186
+
187
+ </ul>
188
+
189
+
190
+
191
+
192
+
193
+ <h2>
194
+ Class Method Summary
195
+ <small><a href="#" class="summary_toggle">collapse</a></small>
196
+ </h2>
197
+
198
+ <ul class="summary">
199
+
200
+ <li class="public ">
201
+ <span class="summary_signature">
202
+
203
+ <a href="#async-class_method" title="async (class method)">.<strong>async</strong>(asynth) &#x21d2; Object </a>
204
+
205
+
206
+
207
+ </span>
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+ <span class="summary_desc"><div class='inline'></div></span>
218
+
219
+ </li>
220
+
221
+
222
+ <li class="public ">
223
+ <span class="summary_signature">
224
+
225
+ <a href="#await-class_method" title="await (class method)">.<strong>await</strong>(p) &#x21d2; Object </a>
226
+
227
+
228
+
229
+ </span>
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+ <span class="summary_desc"><div class='inline'></div></span>
240
+
241
+ </li>
242
+
243
+
244
+ <li class="public ">
245
+ <span class="summary_signature">
246
+
247
+ <a href="#with-class_method" title="with (class method)">.<strong>with</strong>(&amp;th) &#x21d2; Object </a>
248
+
249
+
250
+
251
+ </span>
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+ <span class="summary_desc"><div class='inline'></div></span>
262
+
263
+ </li>
264
+
265
+
266
+ <li class="public ">
267
+ <span class="summary_signature">
268
+
269
+ <a href="#yield-class_method" title="yield (class method)">.<strong>yield</strong> &#x21d2; Object </a>
270
+
271
+
272
+
273
+ </span>
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+ <span class="summary_desc"><div class='inline'></div></span>
284
+
285
+ </li>
286
+
287
+
288
+ </ul>
289
+
290
+
291
+
292
+ <div id="instance_attr_details" class="attr_details">
293
+ <h2>Instance Attribute Details</h2>
294
+
295
+
296
+ <span id=""></span>
297
+ <div class="method_details first">
298
+ <h3 class="signature first" id="eff-instance_method">
299
+
300
+ #<strong>eff</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
301
+
302
+
303
+
304
+
305
+
306
+ </h3><div class="docstring">
307
+ <div class="discussion">
308
+
309
+
310
+ </div>
311
+ </div>
312
+ <div class="tags">
313
+
314
+
315
+ <p class="tag_title">See Also:</p>
316
+ <ul class="see">
317
+
318
+ <li><span class='object_link'><a href="Async/Instance.html#eff-instance_method" title="Ruff::Standard::Async::Instance#eff (method)">Ruff::Standard::Async::Instance#eff</a></span></li>
319
+
320
+ </ul>
321
+
322
+ </div><table class="source_code">
323
+ <tr>
324
+ <td>
325
+ <pre class="lines">
326
+
327
+
328
+ 176
329
+ 177
330
+ 178</pre>
331
+ </td>
332
+ <td>
333
+ <pre class="code"><span class="info file"># File 'lib/ruff/standard/async.rb', line 176</span>
334
+
335
+ <span class='kw'>def</span> <span class='id identifier rubyid_eff'>eff</span>
336
+ <span class='ivar'>@eff</span>
337
+ <span class='kw'>end</span></pre>
338
+ </td>
339
+ </tr>
340
+ </table>
341
+ </div>
342
+
343
+ </div>
344
+
345
+
346
+ <div id="class_method_details" class="method_details_list">
347
+ <h2>Class Method Details</h2>
348
+
349
+
350
+ <div class="method_details first">
351
+ <h3 class="signature first" id="async-class_method">
352
+
353
+ .<strong>async</strong>(asynth) &#x21d2; <tt>Object</tt>
354
+
355
+
356
+
357
+
358
+
359
+ </h3><div class="docstring">
360
+ <div class="discussion">
361
+
362
+
363
+ </div>
364
+ </div>
365
+ <div class="tags">
366
+
367
+
368
+ <p class="tag_title">See Also:</p>
369
+ <ul class="see">
370
+
371
+ <li><span class='object_link'><a href="Async/Instance.html#async-instance_method" title="Ruff::Standard::Async::Instance#async (method)">Ruff::Standard::Async::Instance#async</a></span></li>
372
+
373
+ </ul>
374
+
375
+ </div><table class="source_code">
376
+ <tr>
377
+ <td>
378
+ <pre class="lines">
379
+
380
+
381
+ 154
382
+ 155
383
+ 156</pre>
384
+ </td>
385
+ <td>
386
+ <pre class="code"><span class="info file"># File 'lib/ruff/standard/async.rb', line 154</span>
387
+
388
+ <span class='kw'>def</span> <span class='id identifier rubyid_async'>async</span><span class='lparen'>(</span><span class='id identifier rubyid_asynth'>asynth</span><span class='rparen'>)</span>
389
+ <span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_async'>async</span> <span class='id identifier rubyid_asynth'>asynth</span>
390
+ <span class='kw'>end</span></pre>
391
+ </td>
392
+ </tr>
393
+ </table>
394
+ </div>
395
+
396
+ <div class="method_details ">
397
+ <h3 class="signature " id="await-class_method">
398
+
399
+ .<strong>await</strong>(p) &#x21d2; <tt>Object</tt>
400
+
401
+
402
+
403
+
404
+
405
+ </h3><div class="docstring">
406
+ <div class="discussion">
407
+
408
+
409
+ </div>
410
+ </div>
411
+ <div class="tags">
412
+
413
+
414
+ <p class="tag_title">See Also:</p>
415
+ <ul class="see">
416
+
417
+ <li><span class='object_link'><a href="Async/Instance.html#await-instance_method" title="Ruff::Standard::Async::Instance#await (method)">Ruff::Standard::Async::Instance#await</a></span></li>
418
+
419
+ </ul>
420
+
421
+ </div><table class="source_code">
422
+ <tr>
423
+ <td>
424
+ <pre class="lines">
425
+
426
+
427
+ 159
428
+ 160
429
+ 161</pre>
430
+ </td>
431
+ <td>
432
+ <pre class="code"><span class="info file"># File 'lib/ruff/standard/async.rb', line 159</span>
433
+
434
+ <span class='kw'>def</span> <span class='id identifier rubyid_await'>await</span><span class='lparen'>(</span><span class='id identifier rubyid_p'>p</span><span class='rparen'>)</span>
435
+ <span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_await'>await</span> <span class='id identifier rubyid_p'>p</span>
436
+ <span class='kw'>end</span></pre>
437
+ </td>
438
+ </tr>
439
+ </table>
440
+ </div>
441
+
442
+ <div class="method_details ">
443
+ <h3 class="signature " id="with-class_method">
444
+
445
+ .<strong>with</strong>(&amp;th) &#x21d2; <tt>Object</tt>
446
+
447
+
448
+
449
+
450
+
451
+ </h3><div class="docstring">
452
+ <div class="discussion">
453
+
454
+
455
+ </div>
456
+ </div>
457
+ <div class="tags">
458
+
459
+
460
+ <p class="tag_title">See Also:</p>
461
+ <ul class="see">
462
+
463
+ <li><span class='object_link'><a href="Async/Instance.html#with-instance_method" title="Ruff::Standard::Async::Instance#with (method)">Ruff::Standard::Async::Instance#with</a></span></li>
464
+
465
+ </ul>
466
+
467
+ </div><table class="source_code">
468
+ <tr>
469
+ <td>
470
+ <pre class="lines">
471
+
472
+
473
+ 169
474
+ 170
475
+ 171</pre>
476
+ </td>
477
+ <td>
478
+ <pre class="code"><span class="info file"># File 'lib/ruff/standard/async.rb', line 169</span>
479
+
480
+ <span class='kw'>def</span> <span class='id identifier rubyid_with'>with</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_th'>th</span><span class='rparen'>)</span>
481
+ <span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_with'>with</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_th'>th</span><span class='rparen'>)</span>
482
+ <span class='kw'>end</span></pre>
483
+ </td>
484
+ </tr>
485
+ </table>
486
+ </div>
487
+
488
+ <div class="method_details ">
489
+ <h3 class="signature " id="yield-class_method">
490
+
491
+ .<strong>yield</strong> &#x21d2; <tt>Object</tt>
492
+
493
+
494
+
495
+
496
+
497
+ </h3><div class="docstring">
498
+ <div class="discussion">
499
+
500
+
501
+ </div>
502
+ </div>
503
+ <div class="tags">
504
+
505
+
506
+ <p class="tag_title">See Also:</p>
507
+ <ul class="see">
508
+
509
+ <li><span class='object_link'><a href="Async/Instance.html#yield-instance_method" title="Ruff::Standard::Async::Instance#yield (method)">Ruff::Standard::Async::Instance#yield</a></span></li>
510
+
511
+ </ul>
512
+
513
+ </div><table class="source_code">
514
+ <tr>
515
+ <td>
516
+ <pre class="lines">
517
+
518
+
519
+ 164
520
+ 165
521
+ 166</pre>
522
+ </td>
523
+ <td>
524
+ <pre class="code"><span class="info file"># File 'lib/ruff/standard/async.rb', line 164</span>
525
+
526
+ <span class='kw'>def</span> <span class='kw'>yield</span>
527
+ <span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_yield'>yield</span>
528
+ <span class='kw'>end</span></pre>
529
+ </td>
530
+ </tr>
531
+ </table>
532
+ </div>
533
+
534
+ </div>
535
+
536
+ </div>
537
+
538
+ <div id="footer">
539
+ Generated on Sun Oct 6 23:09:11 2019 by
540
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
541
+ 0.9.20 (ruby-2.6.5).
542
+ </div>
543
+
544
+ </div>
545
+ </body>
546
+ </html>