Membranes for use in methods and apparatuses for hemodialysis and hemofiltration are composed of at least one membrane comprising a polyarylethernitrile having structural units of formula 1, 2, 3 and 4