Skip to content

Easyflow never terminates its threads #15

@cmcconomy

Description

@cmcconomy

I'm using easyflow to manage state change in a file parser and so far it's come in quite handy. However one thing I can't figure out is why after I reach a final state, the context reports itself as terminated, but the flow engine keeps going.

Is there a recommended way to exit the entire FlowEngine when your processing is complete?

EDIT: I found a solution, for anyone looking; create your own Executor class, instantiate your EasyFlow object with it, and call shutdownNow() on the executorservice once your context terminates.

Would be nice to have something like that be a built in option though, or at least the ability to tell EasyFlow to terminate directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions