hivesolutions / appier

Joyful Python Web App development
http://appier.hive.pt
Apache License 2.0
127 stars 22 forks source link

Task abstraction for async execution control unit #25

Open joamag opened 6 years ago

joamag commented 6 years ago

Description

Sometimes it's important to have a proper abstraction for a working unit inside an abstraction system.

Having per example a DownloadTask that allows the downloading of an HTTP based asset and that properly notifies any listening handler should be the aim of this operation.

example

Implementation

Create the Task class abstraction and then use the websocket infra-structure to make Appier Admin control all of these tasks.

There should be some co-relation between this Task class and the Future class.

References

socket.io chat example