[][src]Module coffee::load

Load your game assets with type-safety and build loading screens with consistent progress tracking.

Tasks

The generic Task struct represents a lazy loading operation that can be combined and composed with other tasks. Most of the types representing resources in Coffee have load functions that return a Task.

Tasks are defined declaratively in a functional style. This allows them to keep track of all the work they have to complete before even executing them. Read the Task docs to learn more!

Loading screens

The LoadingScreen trait allows you to implement a loading screen that is compatible with any Task. Currently, Coffee includes a built-in loading screen: ProgressBar, which shows a simple progress bar with some text.

Re-exports

pub use loading_screen::LoadingScreen;

Modules

loading_screen

Build consistent loading screens that run tasks.

Structs

Progress

The progress of a task.

Task

A Task<T> represents an operation that produces a value of type T.

Traits

Join

Join tasks with ease.