         KRProgressHUD.sharedView().updateProgressHUDViewIcon(iconType: .Error)
         KRProgressHUD.sharedView().show()
 
-        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {
-            sleep(1)
-            KRProgressHUD.dismiss()
-        }
+		afterDelay(1.0) {
+			KRProgressHUD.dismiss()
+		}
     }
 
     /**

        KRProgressHUD.sharedView().updateProgressHUDViewIcon(iconType: .Warning)
        KRProgressHUD.sharedView().show()

        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {
            sleep(1)
            KRProgressHUD.dismiss()
        }
    }

    /**

        KRProgressHUD.sharedView().updateProgressHUDViewIcon(iconType: .Info)
        KRProgressHUD.sharedView().show()

		afterDelay(1.0) {
			KRProgressHUD.dismiss()
		}
    }

    /**
