conductor_rust 0.1.0-alpha.0

A library for building Conductor workers with Rust
Documentation
1
2
3
4
5
6
7
8
9
use async_trait::async_trait;
use reqwest::Error;

use crate::common::task::task::Task;
#[async_trait]
pub trait TaskPoller {
    async fn poll(&self, task_type: &str) -> Result<Option<Task>, Error>;
    async fn update(&self, task: Task) -> Result<bool, Error>;
}