Cargo Features
[dependencies]
yield-progress = { version = "0.1.7", default-features = false, features = ["sync", "log_hiccups"] }
- default = sync
-
The
sync
feature is set by default wheneveryield-progress
is added without
somewhere in the dependency tree.default-features = false - sync default
-
Implements
YieldProgress: Send + Sync
for use with multi-threaded executors. Requiresstd
to be available for the compilation target. - log_hiccups
-
Log intervals between yields longer than 100 ms. Requires
std
to be available for the compilation target. This might be removed in favor of something more configurable in future versions, in which case the feature flag may still exist but do nothing.Enables log
Used for logging over-long intervals between yields. TODO: This should be pluggable instead
and web-time
Used for reading the current time on wasm. TODO: This should be pluggable instead