mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-08-07 22:17:07 +02:00
move port and midi to tengri
This commit is contained in:
parent
711e4fe6a9
commit
8144d75abe
26 changed files with 1520 additions and 1977 deletions
|
|
@ -38,8 +38,11 @@ impl Config {
|
|||
const DEFAULTS: &'static str = include_str!("../tek.edn");
|
||||
|
||||
pub fn watch <T> (callback: impl FnOnce(Self)->T) -> Usually<T> {
|
||||
let config = Self::init_new(None)?;
|
||||
let result = callback(config);
|
||||
let config = Self::init_new(None)?;
|
||||
let watcher = notify_debouncer_mini::new_debouncer(Duration::from_millis(500), |res| {
|
||||
println!("{res:?}");
|
||||
})?;
|
||||
let result = callback(config);
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue