Skip to content

Commit

Permalink
book: Adapt inline listing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Jul 12, 2024
1 parent f3bfd50 commit cba6d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/main_event_loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ static RUNTIME: Runtime =
# let (sender, receiver) = async_channel::bounded(1);
# // Connect to "clicked" signal of `button`
# button.connect_clicked(move |_| {
# RUNTIME.spawn(clone!(@strong sender => async move {
# RUNTIME.spawn(clone!(#[strong] sender, async move {
# let response = reqwest::get("https://www.gtk-rs.org").await;
# sender.send(response).await.expect("The channel needs to be open.");
# }));
Expand Down

0 comments on commit cba6d97

Please sign in to comment.