mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2025-02-13 11:57:28 +00:00
core: implement Clone for CachedProcessorMap<S>
This commit is contained in:
parent
e3bba29de4
commit
c93fec98a0
2 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "background-jobs-core"
|
||||
description = "Core types for implementing an asynchronous jobs processor"
|
||||
version = "0.9.3"
|
||||
version = "0.9.4"
|
||||
license-file = "../LICENSE"
|
||||
authors = ["asonix <asonix@asonix.dog>"]
|
||||
repository = "https://git.asonix.dog/Aardwolf/background-jobs"
|
||||
|
|
|
@ -28,6 +28,7 @@ pub struct ProcessorMap<S> {
|
|||
///
|
||||
/// [`Job`]s must be registered with the `ProcessorMap` in the initialization phase of an
|
||||
/// application before workers are spawned in order to handle queued jobs.
|
||||
#[derive(Clone)]
|
||||
pub struct CachedProcessorMap<S> {
|
||||
inner: HashMap<String, ProcessFn<S>>,
|
||||
state: S,
|
||||
|
|
Loading…
Reference in a new issue