Skip to content

Commit

Permalink
deploy: a20058b
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege committed Aug 19, 2024
1 parent c7dd62d commit 8bd50e8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
4 changes: 2 additions & 2 deletions git/docs/src/glib/lib.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@
<span class="kw">pub use </span><a href="#170"><span class="self">self</span>::utils</a>::<span class="kw-2">*</span>;
<span class="kw">mod </span><a href="unichar.rs.html#3-244">unichar</a>;
<span class="kw">pub use </span><a href="#172"><span class="self">self</span>::unichar</a>::<span class="kw-2">*</span>;
<span class="kw">mod </span><a href="main_context.rs.html#3-354">main_context</a>;
<span class="kw">mod </span><a href="main_context.rs.html#3-356">main_context</a>;
<span class="kw">pub use </span><a href="main_context.rs.html#252"><span class="self">self</span>::main_context::MainContextAcquireGuard</a>;
<span class="kw">mod </span><a href="date.rs.html#3-443">date</a>;
<span class="kw">mod </span><a href="date_time.rs.html#3-15">date_time</a>;
Expand Down Expand Up @@ -547,7 +547,7 @@
<span class="attr">#[macro_use]
</span><span class="kw">pub mod </span><a href="subclass/mod.rs.html#3-467">subclass</a>;

<span class="kw">mod </span><a href="main_context_futures.rs.html#3-850">main_context_futures</a>;
<span class="kw">mod </span><a href="main_context_futures.rs.html#3-854">main_context_futures</a>;
<span class="kw">pub use </span>main_context_futures::{<a href="main_context_futures.rs.html#446">JoinError</a>, <a href="main_context_futures.rs.html#279-284">JoinHandle</a>, <a href="main_context_futures.rs.html#367-370">SpawnWithinJoinHandle</a>};
<span class="kw">mod </span><a href="source_futures.rs.html#3-482">source_futures</a>;
<span class="kw">pub use </span><a href="#229"><span class="self">self</span>::source_futures</a>::<span class="kw-2">*</span>;
Expand Down
6 changes: 5 additions & 1 deletion git/docs/src/glib/main_context.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@
<a href="#352" id="352">352</a>
<a href="#353" id="353">353</a>
<a href="#354" id="354">354</a>
<a href="#355" id="355">355</a>
<a href="#356" id="356">356</a>
</pre></div><pre class="rust"><code><span class="comment">// Take a look at the license at the top of the repository in the LICENSE file.

</span><span class="kw">use </span><a href="https://doc.rust-lang.org/nightly/core/mem/index.html">std::mem</a>;
Expand Down Expand Up @@ -720,11 +722,13 @@
<span class="kw">let </span>l = <span class="kw">crate</span>::MainLoop::new(<span class="prelude-val">Some</span>(<span class="kw-2">&amp;</span>c), <span class="bool-val">false</span>);

<span class="kw">let </span>l_clone = l.clone();
thread::spawn(<span class="kw">move </span>|| {
<span class="kw">let </span>join_handle = thread::spawn(<span class="kw">move </span>|| {
c.invoke(<span class="kw">move </span>|| l_clone.quit());
});

l.run();

join_handle.join().unwrap();
}

<span class="kw">fn </span>is_same_context(a: <span class="kw-2">&amp;</span>MainContext, b: <span class="kw-2">&amp;</span>MainContext) -&gt; bool {
Expand Down
12 changes: 10 additions & 2 deletions git/docs/src/glib/main_context_futures.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,10 @@
<a href="#848" id="848">848</a>
<a href="#849" id="849">849</a>
<a href="#850" id="850">850</a>
<a href="#851" id="851">851</a>
<a href="#852" id="852">852</a>
<a href="#853" id="853">853</a>
<a href="#854" id="854">854</a>
</pre></div><pre class="rust"><code><span class="comment">// Take a look at the license at the top of the repository in the LICENSE file.

</span><span class="kw">use </span>std::{
Expand Down Expand Up @@ -1656,13 +1660,15 @@
}),
);

thread::spawn(<span class="kw">move </span>|| {
<span class="kw">let </span>join_handle = thread::spawn(<span class="kw">move </span>|| {
l.run();
});

o_sender.send(()).unwrap();

receiver.recv().unwrap();

join_handle.join().unwrap();
}

<span class="attr">#[test]
Expand All @@ -1686,7 +1692,7 @@
<span class="kw">let </span>c = MainContext::new();
<span class="kw">let </span>l = <span class="kw">crate</span>::MainLoop::new(<span class="prelude-val">Some</span>(<span class="kw-2">&amp;</span>c), <span class="bool-val">false</span>);

std::thread::spawn({
<span class="kw">let </span>join_handle = std::thread::spawn({
<span class="kw">let </span>l_clone = l.clone();
<span class="kw">move </span>|| {
c.spawn_from_within(<span class="kw">move </span>|| <span class="kw">async move </span>{
Expand All @@ -1699,6 +1705,8 @@
});

l.run();

join_handle.join().unwrap();
}

<span class="attr">#[test]
Expand Down
4 changes: 2 additions & 2 deletions git/docs/src/glib/object.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6100,11 +6100,11 @@
</span><span class="kw">pub fn </span>with_mut_values(type_: <a href="types.rs.html#22">Type</a>, properties: <span class="kw-2">&amp;mut </span>[(<span class="kw-2">&amp;</span><a href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <a href="value.rs.html#478-512">Value</a>)]) -&gt; <a href="#1371-1374">Object</a> {
<span class="attr">#[cfg(feature = <span class="string">"gio"</span>)]
</span><span class="kw">unsafe </span>{
<span class="kw">let </span>iface_type = <a href="translate.rs.html#1417-1419">from_glib</a>(gio_sys::g_initable_get_type());
<span class="kw">let </span>iface_type = <a href="translate.rs.html#1417-1419">from_glib</a>(<a href="../../gio_sys/fn.g_initable_get_type.html">gio_sys::g_initable_get_type</a>());
<span class="kw">if </span>type_.is_a(iface_type) {
<a class="macro" href="https://doc.rust-lang.org/nightly/std/macro.panic.html">panic!</a>(<span class="string">"Can't instantiate type '{type_}' implementing `gio::Initable`. Use `gio::Initable::new()`"</span>);
}
<span class="kw">let </span>iface_type = <a href="translate.rs.html#1417-1419">from_glib</a>(gio_sys::g_async_initable_get_type());
<span class="kw">let </span>iface_type = <a href="translate.rs.html#1417-1419">from_glib</a>(<a href="../../gio_sys/fn.g_async_initable_get_type.html">gio_sys::g_async_initable_get_type</a>());
<span class="kw">if </span>type_.is_a(iface_type) {
<a class="macro" href="https://doc.rust-lang.org/nightly/std/macro.panic.html">panic!</a>(<span class="string">"Can't instantiate type '{type_}' implementing `gio::AsyncInitable`. Use `gio::AsyncInitable::new()`"</span>);
}
Expand Down
2 changes: 1 addition & 1 deletion git/docs/src/glib/source_futures.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@

<span class="attr">#[test]
</span><span class="kw">fn </span>test_timeout_and_channel() {
<span class="kw">let </span>c = MainContext::default();
<span class="kw">let </span>c = MainContext::new();

<span class="kw">let </span>res = c.block_on(timeout_future(Duration::from_millis(<span class="number">20</span>)).then(|()| {
<span class="kw">let </span>(sender, receiver) = oneshot::channel();
Expand Down

0 comments on commit 8bd50e8

Please sign in to comment.