mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-06 10:15:30 +00:00
Added proper tests for half-sync-half-async
This commit is contained in:
1 parent
ca14e8ddad
commit
dbca06a9e7
3 files changed
+85
No files matched your search
+1
@@ -50,6 +50,7 @@ public class AsynchronousService {
|
||||
task.onPreCall();
|
||||
} catch (Exception e) {
|
||||
task.onError(e);
|
||||
return;
|
||||
}
|
||||
|
||||
service.submit(new FutureTask<T>(task) {
|
||||
|
||||
Reference in new issue
Block a user