mirror of https://github.com/deavmi/tasky.git
Request
- Implemented `expectsResponse()` which returns `false` if no response handler is assigned (implying no response is expected), `true` otherwise
This commit is contained in:
parent
7af21a909a
commit
8387d0ee78
|
@ -30,4 +30,9 @@ public abstract class Request
|
|||
{
|
||||
respFunc(responseData);
|
||||
}
|
||||
|
||||
package final bool expectsResponse()
|
||||
{
|
||||
return respFunc !is null;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue