Pass a function to run a producer instead of a consumer
Generate sha1 hash in a pipe