-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb2705a
commit f321f1c
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,6 +169,8 @@ After reference cycles we found the second disadvantage of GTK GObjects: They ar | |
|
||
## Async | ||
|
||
Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/master/book/listings/main_event_loop/6/main.rs">listings/main_event_loop/6/main.rs</a> | ||
|
||
```rust | ||
{{#rustdoc_include ../listings/main_event_loop/6/main.rs:callback}} | ||
``` | ||
|
@@ -177,6 +179,8 @@ After reference cycles we found the second disadvantage of GTK GObjects: They ar | |
cargo add [email protected] --features gtk4 | ||
``` | ||
|
||
Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/master/book/listings/main_event_loop/7/main.rs">listings/main_event_loop/7/main.rs</a> | ||
|
||
```rust | ||
{{#rustdoc_include ../listings/main_event_loop/7/main.rs:callback}} | ||
``` | ||
|
@@ -186,10 +190,14 @@ cargo add tokio@1 --features rt-multi-thread | |
cargo add [email protected] --features rustls-tls --no-default-features | ||
``` | ||
|
||
Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/master/book/listings/main_event_loop/8/main.rs">listings/main_event_loop/8/main.rs</a> | ||
|
||
```rust | ||
{{#rustdoc_include ../listings/main_event_loop/8/main.rs:tokio_runtime}} | ||
``` | ||
|
||
Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/master/book/listings/main_event_loop/8/main.rs">listings/main_event_loop/8/main.rs</a> | ||
|
||
```rust | ||
{{#rustdoc_include ../listings/main_event_loop/8/main.rs:callback}} | ||
``` | ||
|