Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F140091
cprjobhandler.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
cprjobhandler.hpp
View Options
/*
* This file is part of libkazv.
* SPDX-FileCopyrightText: 2020 Tusooa Zhu
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include
<libkazv-config.hpp>
#include
<memory>
#include
<boost/asio.hpp>
#include
"jobinterface.hpp"
namespace
Kazv
{
struct
CprJobHandler
:
public
JobInterface
{
CprJobHandler
(
boost
::
asio
::
io_context
::
executor_type
executor
);
~
CprJobHandler
()
override
;
void
async
(
std
::
function
<
void
()
>
func
)
override
;
void
setTimeout
(
std
::
function
<
void
()
>
func
,
int
ms
,
std
::
optional
<
std
::
string
>
timerId
=
std
::
nullopt
)
override
;
void
setInterval
(
std
::
function
<
void
()
>
func
,
int
ms
,
std
::
optional
<
std
::
string
>
timerId
=
std
::
nullopt
)
override
;
void
cancel
(
std
::
string
timerId
)
override
;
void
submit
(
BaseJob
job
,
std
::
function
<
void
(
Response
)
>
callback
)
override
;
void
stop
();
private
:
struct
Private
;
std
::
unique_ptr
<
Private
>
m_d
;
};
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Jan 19, 12:29 PM (7 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
55160
Default Alt Text
cprjobhandler.hpp (1 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment