trump 0.1.0

Spawn a background thread that prints a Donald Trump quote every 10 seconds.
Documentation
  • Coverage
  • 25%
    1 out of 4 items documented0 out of 2 items with examples
  • Size
  • Source code size: 4.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 20s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • luzhihaoTestingLab

trump

Spawn a background thread that prints a Donald Trump quote every 10 seconds.

Usage

Add to your Cargo.toml:

[dependencies]
trump = "0.1"

Example:

use trump::start_quotes;
use std::time::Duration;
use std::thread;

fn main() {
    // Start background printing; this call returns immediately.
    start_quotes();

    // Keep main alive to observe several quotes.
    thread::sleep(Duration::from_secs(35));
}

License

MIT