eiffel-community / eiffel-community/eiffel-pythonlib

Activity should be able to be called outside of subscriber

Aperta
#10 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Python
Stelle
8
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.