KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Preemptive methods under the same call chain should also be preemptive
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac & Win
Published On: April 11, 2022

When working with a preemptive methods, all methods within that same call chain must also be preemptive / thread-safe. This includes typical project methods as well as methods within class methods like collection.sort() where the 1st argument would be a method name.

In addition, thread-safe methods will include conditions such as:

- Must have "Can be run in preemptive processes" or "indifferent" property enabled
- Must not include thread-unsafe plugins
- Must not use any interprocess variables
- Must not call interface related commands (E.G. DIALOG)