MCPcopy Index your code
hub / github.com/wechaty/python-wechaty / scheduler

Method scheduler

src/wechaty/plugin.py:204–211  ·  view source on GitHub ↗

get the scheduler

(self)

Source from the content-addressed store, hash-verified

202
203 @property
204 def scheduler(self) -> AsyncIOScheduler:
205 """get the scheduler"""
206 scheduler_instance = getattr(self, self._scheduler_field, None)
207 if scheduler_instance is None:
208 raise WechatyPluginError('there is an error')
209
210 assert isinstance(scheduler_instance, AsyncIOScheduler)
211 return scheduler_instance
212
213 @scheduler.setter
214 def scheduler(self, scheduler_instance: AsyncIOScheduler) -> None:

Callers

nothing calls this directly

Calls 1

WechatyPluginErrorClass · 0.85

Tested by

no test coverage detected