1 unstable release
0.1.0 | Jul 21, 2024 |
---|
#1 in #asynchronously
7KB
70 lines
Loading Screen
This Rust library provides functionality to display a loading screen while running tasks. It includes two primary functions:
with_loading_screen
: Displays a loading screen animation on a separate thread while executing a provided task synchronously.with_loading_screen_async
: Displays a loading screen animation asynchronously while executing a provided task asynchronously.
The default loading screen animation is a donut spinner, but you can add your own if you're a little bitch who can't handle a donut.
Installation
Add the following to your Cargo.toml
:
[dependencies]
loading_screen = "0.1"
Dependencies
~2.4–8MB
~58K SLoC