I agree with the previous answer especially for the children.
For adults, I ask them in advance if they want to have homework, and I will cover it in class if they don't do it.
Using a variety of activities including audio or video based homework is helpful from time to time as well