Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activity should be able to be called outside of subscriber #10

Open
t-persson opened this issue Nov 21, 2019 · 0 comments
Open

Activity should be able to be called outside of subscriber #10

t-persson opened this issue Nov 21, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@t-persson
Copy link
Collaborator

Description

An Activity should be able to handle being called without being a subscriber callback.
That is, you should be able to call an activity.

Example:

class MyActivity(Activity):
    pass
activity = MyActivity(...)
activity()
# Stuff happens

Motivation

Sometimes an activity can be triggered without listening on events, for example when creating a tool that sends activity triggered,started,finished.

Exemplification

Activities should be allowed to be used as activities started and not just activities triggered.

Benefits

Ease of use.

Possible Drawbacks

Maybe pinning too much functionality to the activity object.

@t-persson t-persson added the enhancement New feature or request label Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant