<!DOCTYPE html>
<html><head><title>Runtime</title></head>
<body>
<div id="main-content">
<h1>Struct <a class="struct">Runtime</a></h1>
<div class="docblock"><p>The Tokio runtime parent page noise.</p></div>
<details class="toggle method-toggle" open>
<summary>
<section id="method.new" class="method">
<h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>() -> Result<Runtime></h4>
</section>
</summary>
<div class="docblock"><p>Creates a new runtime instance with default configuration values.</p>
<pre><code>let rt = Runtime::new().unwrap();</code></pre></div>
</details>
<details class="toggle method-toggle" open>
<summary>
<section id="method.spawn" class="method">
<h4 class="code-header">pub fn spawn<F>(&self, future: F)</h4>
</section>
</summary>
<div class="docblock"><p>Spawns a future onto the runtime.</p></div>
</details>
</div>
</body></html>