The research on this seems pretty overwhelming: laptops and cell phones in class hurt learning. Related issue: learning to listen.
Unfortunately in my more quant courses, they can be necessary at times. But if I had a way to turn off the Internet, I certainly would. (FCC makes wireless jamming illegal – for good reason.)