Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Task mode

Oleg A edited this page Jul 31, 2018 · 1 revision

In order not to block the execution of your code while saving statistics, we added the task mode to the library.

When you call await cb.register_message(...) the library creates a background task and immediately resume to your code execution.


To use task mode, just add task_mode=True to cb initiation:

from aiochatbase import Chatbase
cb = Chatbase(api_key=API_KEY, platform=PLATFORM, task_mode=True)

Full example of using task_mode is here!

Clone this wiki locally