Makes buffer a bit non blocking using channels