public interface NetworkDispatcher
An NetworkDispatcher
can dispatch a network computation context to a worker thread
Modifier and Type | Method and Description |
---|---|
void |
dispatch(NetworkJob job)
Dispatch handling request job (to the worker thread)
|
void |
keep()
Keep the state of the network request/response so we can come back to it later on.
|
void dispatch(NetworkJob job)
Dispatch handling request job (to the worker thread)
job
- the request handling jobvoid keep()
Keep the state of the network request/response so we can come back to it later on.
This method is mainly used when app is running in dev mode and there are code changes triggered app refresh, we need to wait for until the refreshed app started
Copyright © 2014–2017 ActFramework. All rights reserved.