Skip to content

Commit

Permalink
add complete and error callbacks for async jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
bradennapier committed Jan 13, 2019
1 parent cddc196 commit d67fb10
Show file tree
Hide file tree
Showing 19 changed files with 781 additions and 591 deletions.
2 changes: 1 addition & 1 deletion dev/coverage/flow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
border: 1px solid rgba(34,36,38,.15);
height: auto;
}
</style></head><body><div class="ui grid container"><div class="row"><h2>Flow Coverage Report</h2></div><div class="row"><h4 class="ui header">Summary</h4><table class="ui small celled table"><thead><tr><th>Percent</th><th>Total</th><th>Covered</th><th>Uncovered</th></tr></thead><tbody><tr class="positive"><td>93 %</td><td>865</td><td>811</td><td>54</td></tr></tbody></table></div><div class="row"><h4 class="ui header">Files</h4><table id="files" class="ui small celled table sortable"><thead><tr><th class="sorted ascending">Filename</th><th>Annotation</th><th>Percent</th><th>Total</th><th>Covered</th><th>Uncovered</th></tr></thead><tbody><tr class="positive"><td class="selectable"><a href="sourcefiles/src/constants.js.html">src/constants.js</a></td><td> @flow </td><td class=""><span>100 %</span></td><td> 14 </td><td> 14 </td><td> 0 </td></tr><tr class="positive"><td class="selectable"><a href="sourcefiles/src/defer.js.html">src/defer.js</a></td><td> @flow </td><td class=""><span>96 %</span></td><td> 129 </td><td> 125 </td><td> 4 </td></tr><tr class="positive"><td class="selectable"><a href="sourcefiles/src/index.js.html">src/index.js</a></td><td> @flow </td><td class=""><span>92 %</span></td><td> 714 </td><td> 664 </td><td> 50 </td></tr><tr class="positive"><td class="selectable"><a href="sourcefiles/src/types.js.html">src/types.js</a></td><td> @flow </td><td class=""><span>100 %</span></td><td> 8 </td><td> 8 </td><td> 0 </td></tr></tbody></table></div><div class="row centered"><footer>Flow Coverage Report generated by<a href="https://flowtype.org"> flow </a>and<a href="https://github.com/rpl/flow-coverage-report"> flow-coverage-report </a>at Thu Jan 03 2019 15:15:18 GMT-0800 (Pacific Standard Time)</footer></div></div></body></html>
</style></head><body><div class="ui grid container"><div class="row"><h2>Flow Coverage Report</h2></div><div class="row"><h4 class="ui header">Summary</h4><table class="ui small celled table"><thead><tr><th>Percent</th><th>Total</th><th>Covered</th><th>Uncovered</th></tr></thead><tbody><tr class="positive"><td>93 %</td><td>865</td><td>811</td><td>54</td></tr></tbody></table></div><div class="row"><h4 class="ui header">Files</h4><table id="files" class="ui small celled table sortable"><thead><tr><th class="sorted ascending">Filename</th><th>Annotation</th><th>Percent</th><th>Total</th><th>Covered</th><th>Uncovered</th></tr></thead><tbody><tr class="positive"><td class="selectable"><a href="sourcefiles/src/constants.js.html">src/constants.js</a></td><td> @flow </td><td class=""><span>100 %</span></td><td> 14 </td><td> 14 </td><td> 0 </td></tr><tr class="positive"><td class="selectable"><a href="sourcefiles/src/defer.js.html">src/defer.js</a></td><td> @flow </td><td class=""><span>96 %</span></td><td> 129 </td><td> 125 </td><td> 4 </td></tr><tr class="positive"><td class="selectable"><a href="sourcefiles/src/index.js.html">src/index.js</a></td><td> @flow </td><td class=""><span>92 %</span></td><td> 714 </td><td> 664 </td><td> 50 </td></tr><tr class="positive"><td class="selectable"><a href="sourcefiles/src/types.js.html">src/types.js</a></td><td> @flow </td><td class=""><span>100 %</span></td><td> 8 </td><td> 8 </td><td> 0 </td></tr></tbody></table></div><div class="row centered"><footer>Flow Coverage Report generated by<a href="https://flowtype.org"> flow </a>and<a href="https://github.com/rpl/flow-coverage-report"> flow-coverage-report </a>at Sat Jan 12 2019 22:50:38 GMT-0800 (Pacific Standard Time)</footer></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/coverage/flow/sourcefiles/src/constants.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
export const EXECUTE_RESULT = Symbol.for(&#x27;@task-handler/result&#x27;);

export const TASK_CANCELLED = Symbol.for(&#x27;@task-handler/cancelled&#x27;);
</textarea></div></div><div class="row centered"><footer>Flow Coverage Report generated by<a href="https://flowtype.org"> flow </a>and<a href="https://github.com/rpl/flow-coverage-report"> flow-coverage-report </a>at Thu Jan 03 2019 15:15:18 GMT-0800 (Pacific Standard Time)</footer></div></div><pre id="file-coverage-data" style="display:none;">{&quot;expressions&quot;:{&quot;covered_count&quot;:14,&quot;covered_locs&quot;:[{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:3,&quot;column&quot;:14,&quot;offset&quot;:26},&quot;end&quot;:{&quot;line&quot;:3,&quot;column&quot;:17,&quot;offset&quot;:30}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:3,&quot;column&quot;:21,&quot;offset&quot;:33},&quot;end&quot;:{&quot;line&quot;:3,&quot;column&quot;:28,&quot;offset&quot;:41}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:5,&quot;column&quot;:14,&quot;offset&quot;:57},&quot;end&quot;:{&quot;line&quot;:5,&quot;column&quot;:43,&quot;offset&quot;:87}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:5,&quot;column&quot;:47,&quot;offset&quot;:90},&quot;end&quot;:{&quot;line&quot;:5,&quot;column&quot;:52,&quot;offset&quot;:96}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:5,&quot;column&quot;:47,&quot;offset&quot;:90},&quot;end&quot;:{&quot;line&quot;:5,&quot;column&quot;:63,&quot;offset&quot;:107}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:5,&quot;column&quot;:61,&quot;offset&quot;:104},&quot;end&quot;:{&quot;line&quot;:5,&quot;column&quot;:62,&quot;offset&quot;:106}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:7,&quot;column&quot;:14,&quot;offset&quot;:123},&quot;end&quot;:{&quot;line&quot;:7,&quot;column&quot;:27,&quot;offset&quot;:137}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:7,&quot;column&quot;:31,&quot;offset&quot;:140},&quot;end&quot;:{&quot;line&quot;:7,&quot;column&quot;:36,&quot;offset&quot;:146}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:7,&quot;column&quot;:31,&quot;offset&quot;:140},&quot;end&quot;:{&quot;line&quot;:7,&quot;column&quot;:64,&quot;offset&quot;:174}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:7,&quot;column&quot;:42,&quot;offset&quot;:151},&quot;end&quot;:{&quot;line&quot;:7,&quot;column&quot;:63,&quot;offset&quot;:173}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:9,&quot;column&quot;:14,&quot;offset&quot;:190},&quot;end&quot;:{&quot;line&quot;:9,&quot;column&quot;:27,&quot;offset&quot;:204}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:9,&quot;column&quot;:31,&quot;offset&quot;:207},&quot;end&quot;:{&quot;line&quot;:9,&quot;column&quot;:36,&quot;offset&quot;:213}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:9,&quot;column&quot;:31,&quot;offset&quot;:207},&quot;end&quot;:{&quot;line&quot;:9,&quot;column&quot;:67,&quot;offset&quot;:244}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:9,&quot;column&quot;:42,&quot;offset&quot;:218},&quot;end&quot;:{&quot;line&quot;:9,&quot;column&quot;:66,&quot;offset&quot;:243}}],&quot;uncovered_count&quot;:0,&quot;uncovered_locs&quot;:[]},&quot;filename&quot;:&quot;src/constants.js&quot;,&quot;annotation&quot;:&quot;flow&quot;,&quot;isFlow&quot;:true,&quot;percent&quot;:100}</pre></body></html>
</textarea></div></div><div class="row centered"><footer>Flow Coverage Report generated by<a href="https://flowtype.org"> flow </a>and<a href="https://github.com/rpl/flow-coverage-report"> flow-coverage-report </a>at Sat Jan 12 2019 22:50:38 GMT-0800 (Pacific Standard Time)</footer></div></div><pre id="file-coverage-data" style="display:none;">{&quot;expressions&quot;:{&quot;covered_count&quot;:14,&quot;covered_locs&quot;:[{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:3,&quot;column&quot;:14,&quot;offset&quot;:26},&quot;end&quot;:{&quot;line&quot;:3,&quot;column&quot;:17,&quot;offset&quot;:30}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:3,&quot;column&quot;:21,&quot;offset&quot;:33},&quot;end&quot;:{&quot;line&quot;:3,&quot;column&quot;:28,&quot;offset&quot;:41}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:5,&quot;column&quot;:14,&quot;offset&quot;:57},&quot;end&quot;:{&quot;line&quot;:5,&quot;column&quot;:43,&quot;offset&quot;:87}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:5,&quot;column&quot;:47,&quot;offset&quot;:90},&quot;end&quot;:{&quot;line&quot;:5,&quot;column&quot;:52,&quot;offset&quot;:96}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:5,&quot;column&quot;:47,&quot;offset&quot;:90},&quot;end&quot;:{&quot;line&quot;:5,&quot;column&quot;:63,&quot;offset&quot;:107}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:5,&quot;column&quot;:61,&quot;offset&quot;:104},&quot;end&quot;:{&quot;line&quot;:5,&quot;column&quot;:62,&quot;offset&quot;:106}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:7,&quot;column&quot;:14,&quot;offset&quot;:123},&quot;end&quot;:{&quot;line&quot;:7,&quot;column&quot;:27,&quot;offset&quot;:137}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:7,&quot;column&quot;:31,&quot;offset&quot;:140},&quot;end&quot;:{&quot;line&quot;:7,&quot;column&quot;:36,&quot;offset&quot;:146}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:7,&quot;column&quot;:31,&quot;offset&quot;:140},&quot;end&quot;:{&quot;line&quot;:7,&quot;column&quot;:64,&quot;offset&quot;:174}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:7,&quot;column&quot;:42,&quot;offset&quot;:151},&quot;end&quot;:{&quot;line&quot;:7,&quot;column&quot;:63,&quot;offset&quot;:173}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:9,&quot;column&quot;:14,&quot;offset&quot;:190},&quot;end&quot;:{&quot;line&quot;:9,&quot;column&quot;:27,&quot;offset&quot;:204}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:9,&quot;column&quot;:31,&quot;offset&quot;:207},&quot;end&quot;:{&quot;line&quot;:9,&quot;column&quot;:36,&quot;offset&quot;:213}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:9,&quot;column&quot;:31,&quot;offset&quot;:207},&quot;end&quot;:{&quot;line&quot;:9,&quot;column&quot;:67,&quot;offset&quot;:244}},{&quot;source&quot;:&quot;/Users/Shared/Development/projects/task-handler/src/constants.js&quot;,&quot;type&quot;:&quot;SourceFile&quot;,&quot;start&quot;:{&quot;line&quot;:9,&quot;column&quot;:42,&quot;offset&quot;:218},&quot;end&quot;:{&quot;line&quot;:9,&quot;column&quot;:66,&quot;offset&quot;:243}}],&quot;uncovered_count&quot;:0,&quot;uncovered_locs&quot;:[]},&quot;filename&quot;:&quot;src/constants.js&quot;,&quot;annotation&quot;:&quot;flow&quot;,&quot;isFlow&quot;:true,&quot;percent&quot;:100}</pre></body></html>
2 changes: 1 addition & 1 deletion dev/coverage/flow/sourcefiles/src/defer.js.html

Large diffs are not rendered by default.

0 comments on commit d67fb10

Please sign in to comment.