Skip to content

你好,不知道为什么代码没有正常执行 #2

@309791679

Description

@309791679

controller = ScheduleController([
Schedule(
timeOutRunOnce: true,
timing: [13, 19],
readFn: () async => await get('schedule'),
writeFn: (String data) async {
await save('schedule', data);
},
callback: () {
print('schedule------------------------------------------');
},
),
]);
controller.run();

我的理解就是,1-7点钟,这个时间段执行,那为什么没有正常执行呢, 读写代码是文档上复制的,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions