@Retention(value=CLASS)
@Target(value=METHOD)
public @interface OnAppStop
Mark a method to be a job that must be run before App stop
public abstract boolean async
Indicate if the job should be run synchronously with application or asynchronously.
Running job synchronously means other jobs can be executed with other jobs in parallel
Running job asynchronously means the job block the application stop process until it finished
true
if the annotated method shall be executed asynchronously or false
if the method all be executed synchronouslyCopyright © 2014–2017 ActFramework. All rights reserved.