Skip to content

Schedule commands should return proper futures #55

@goodboy

Description

@goodboy

models.Session includes some methods which schedule future tasks with Freeswitch.

The details of how such tasks are cancelled or otherwise handled should be wrapped in an appropriate concurrent.futures.Future or asyncio.Future much like how Client.bgapi() returns instances our hand rolled future-like Job type. Maybe a Task is an even better analogue?

Further, we should adjust our current Job to be compatible with the new interface as it was originally based off multiprocessing.AsyncResult.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions