This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use serde::{Serialize, Deserialize}; | |
use crate::CallSite; | |
#[cfg(feature = "async")] | |
use futures::Future; | |
#[cfg(feature = "async")] | |
use crate::AsyncCallSite; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type BaseScehduler interface { | |
// Create a new periodic job | |
Every(interval uint64) *Job | |
// Create a one time job | |
After(interval uint64) *Job | |
// Remove specific job j | |
Cancel(*Job) bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"sync" | |
"../.." | |
) | |
func main() { |