Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
fb4bd51d71 | |||
|
3a3af4757c | ||
69c8b7409b | |||
85b6079b60 | |||
989f073061 |
@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.2.0] - 2024-08-02
|
||||
|
||||
### Added
|
||||
- use actual delimination
|
||||
- use source instead
|
||||
- add inner error
|
||||
|
||||
## [0.1.0] - 2024-08-02
|
||||
|
||||
### Added
|
||||
|
@ -3,7 +3,7 @@ members = ["crates/*"]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
|
||||
[workspace.dependencies]
|
||||
drift = { path = "crates/drift" }
|
||||
|
@ -5,8 +5,11 @@ use std::future::Future;
|
||||
use tokio::time;
|
||||
use tokio_util::sync::CancellationToken;
|
||||
|
||||
#[derive(Debug, Clone, thiserror::Error)]
|
||||
pub enum DriftError {}
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum DriftError {
|
||||
#[error("job failed with inner error: {0}")]
|
||||
JobError(#[source] anyhow::Error),
|
||||
}
|
||||
|
||||
pub fn schedule<F, Fut>(interval: Duration, func: F) -> CancellationToken
|
||||
where
|
||||
|
Loading…
Reference in New Issue
Block a user