Cooperative Types for Controlling Thread Interference in Java | AMiner