mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-15 04:02:10 +08:00
23 lines
308 B
JavaScript
23 lines
308 B
JavaScript
'use strict';
|
|
|
|
const Subscription = require('egg').Subscription;
|
|
|
|
/**
|
|
* test
|
|
*/
|
|
|
|
class Test extends Subscription {
|
|
static get schedule() {
|
|
return {
|
|
interval: '360m',
|
|
type: 'worker',
|
|
immediate: false,
|
|
disable: true,
|
|
};
|
|
}
|
|
|
|
async subscribe() {}
|
|
}
|
|
|
|
module.exports = Test;
|