You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
3.0 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>TaskBar (infer.IBase.TaskBar)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../../index.html">infer</a> &#x00BB; <a href="../index.html">IBase</a> &#x00BB; TaskBar</nav><h1>Module <code>IBase.TaskBar</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code></dt></dl><dl><dt class="spec value" id="val-refresh"><a href="#val-refresh" class="anchor"></a><code><span class="keyword">val</span> refresh : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> unit</code></dt><dd><p>draw the taskbar</p></dd></dl><dl><dt class="spec value" id="val-create"><a href="#val-create" class="anchor"></a><code><span class="keyword">val</span> create : <span>jobs:int</span> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dd><p>creates a task bar for running <code>jobs</code> jobs in parallel</p></dd></dl><dl><dt class="spec value" id="val-update_status"><a href="#val-update_status" class="anchor"></a><code><span class="keyword">val</span> update_status : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <span>slot:int</span> <span>&#45;&gt;</span> Mtime.t <span>&#45;&gt;</span> string <span>&#45;&gt;</span> unit</code></dt><dd><p><code>update_status task_bar ~slot t status</code> records an event described by <code>status</code> on slot <code>slot</code> started at time <code>t</code></p></dd></dl><dl><dt class="spec value" id="val-set_tasks_total"><a href="#val-set_tasks_total" class="anchor"></a><code><span class="keyword">val</span> set_tasks_total : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> int <span>&#45;&gt;</span> unit</code></dt><dd><p>set the total number of tasks to do</p></dd></dl><dl><dt class="spec value" id="val-tasks_done_reset"><a href="#val-tasks_done_reset" class="anchor"></a><code><span class="keyword">val</span> tasks_done_reset : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> unit</code></dt><dd><p>record that 0 tasks have been completed so far</p></dd></dl><dl><dt class="spec value" id="val-set_remaining_tasks"><a href="#val-set_remaining_tasks" class="anchor"></a><code><span class="keyword">val</span> set_remaining_tasks : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> int <span>&#45;&gt;</span> unit</code></dt><dd><p>set the number of tasks remaining to complete</p></dd></dl><dl><dt class="spec value" id="val-finish"><a href="#val-finish" class="anchor"></a><code><span class="keyword">val</span> finish : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> unit</code></dt><dd><p>tear down the task bar and ready the terminal for more output</p></dd></dl></div></body></html>