     }
     
     func flush0() {
-        if interestedEvent != InterestedEvent.Write && interestedEvent != InterestedEvent.All && !flushNow() {
+        if interestedEvent != .Write && interestedEvent != .All && !flushNow() {
             guard open else {
                 return
             }
             // Could not flush all of the queued bytes, stop reading until we were able to do so
-            if interestedEvent == InterestedEvent.Read {
-                safeReregister(interested: InterestedEvent.Write)
+            if interestedEvent == .Read {
+                safeReregister(interested: .Write)
             } else {
-                safeReregister(interested: InterestedEvent.All)
+                safeReregister(interested: .All)
             }
             pipeline.fireChannelWritabilityChanged(writable: false)
         }

            }
            if readPending {
                // Start reading again
                safeReregister(interested: InterestedEvent.Read)
            } else {
                // No read pending so just deregister from the EventLoop for now.
                safeDeregister()

    
    private func safeReregister(interested: InterestedEvent) {
        guard open else {
            interestedEvent = .None
            return
        }
        interestedEvent = interested
