Comments (3)
I was wrong about this feature. I think it's up to developer to implement this.
from easyflow.
Hi mrniko,
Thanks for using EasyFlow and giving your feedback.
This method cannot be added to Event class as, according to the current design, this sort of functionality (when and on which thread handlers are executed) should be implemented within Executors.
Therefore, I can see 2 options to implement delay on event triggering:
- If you need it in many places in your State Machine, then you can implement your custom Executor that runs tasks with certain delay. If you need this delay to be variable, you can store delay value in Context and access it from your Executor.
- If you only need it in one or two places, just use timers outside EasyFlow.
Regards,
Andrey
from easyflow.
Hi Nikita,
Thanks for using EasyFlow and giving your feedback.
Please see my reply on GitHub.
Regards,
Andrey
On 11 May 2013 18:55, Nikita Koksharov [email protected] wrote:
I was wrong about this feature. I think it's up to developer to implement
this.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-17756591
.
from easyflow.
Related Issues (20)
- StateHandler for whenEnter never invokes HOT 6
- Race condition during flow starting. HOT 1
- JavaDoc HOT 1
- Handlers fired multiple times for same transition HOT 1
- Easyflow never terminates its threads HOT 4
- Duplicated depending - slf4j-api
- Support possibility to create flow in a step by step manner HOT 3
- What the right way to "clean up" after exception during state process? HOT 2
- Adding terminate() method? HOT 1
- Support for non-deterministic FSM HOT 1
- Current pattern/library status HOT 7
- Paper
- This is no longer working HOT 3
- In which package or library can I fine the "StatefulContext" class?
- The "on" method cannot be called HOT 1
- non-android example HOT 1
- Support of forks
- Some events are not triggered in a consistent manner
- Does SyncExecutor assumed to have a concurrent access HOT 4
- StateHandler for whenEnter never invokes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyflow.