Skip to content

Instantly share code, notes, and snippets.

View flier's full-sized avatar

Flier Lu flier

  • Beijing, China
  • 11:56 (UTC +08:00)
View GitHub Profile
@flier
flier / protocol.rs
Last active June 23, 2022 03:58
Generated Rust binding file for Chrome DevTools Protocol (.PDL) definition files
This file has been truncated, but you can view the full file.
use serde::{Serialize, Deserialize};
use crate::CallSite;
#[cfg(feature = "async")]
use futures::Future;
#[cfg(feature = "async")]
use crate::AsyncCallSite;
@flier
flier / scheduler.go
Last active December 21, 2015 14:32
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
package main
import (
"log"
"sync"
"../.."
)
func main() {