Skip to content

Question: Explanation/Examples for TThreadMode Subscriptions #75

@luebbe

Description

@luebbe

Hi Folks,

I'm just starting to use delphi-event-bus and I'd like to have some more information on the subscription types, like typical use cases and when to use which subscription method.
I assume, but I'm not 100% sure:

  • TThreadMode.Posting is the default when no type is given in the subscribe attribute
  • TThreadMode.Main should be used, when the consumed event results in an ui update
  • If an event is produced and consumed in the UI, Posting is equvalent to Main

What about the others?

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