Add support for Promise<> by having a general parameterized support.
Merge pull request #299 from mounirlamouri/parameterized_promise

Add support for Promise<> by having a general parameterized support.