MCPcopy Index your code
hub / github.com/koush/AndroidAsync / cleanup

Method cleanup

AndroidAsync/src/com/koushikdutta/async/Util.java:74–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 final WritableCallback cb = new WritableCallback() {
73 int totalRead = 0;
74 private void cleanup() {
75 ds.setClosedCallback(null);
76 ds.setWriteableCallback(null);
77 pending.recycle();
78 StreamUtility.closeQuietly(is);
79 }
80 ByteBufferList pending = new ByteBufferList();
81 Allocator allocator = new Allocator().setMinAlloc((int)Math.min(2 << 19, max));
82

Callers 1

onWriteableMethod · 0.95

Calls 4

closeQuietlyMethod · 0.95
recycleMethod · 0.80
setClosedCallbackMethod · 0.65
setWriteableCallbackMethod · 0.65

Tested by

no test coverage detected