Miles 'might' be returned as soon as you have cancelled, but might take upto 24hrs. On another note, there would be charges IIRC, $150 to redeposit the miles back, unless
1) The booking was done in less than 24hrs or
2) You are a Platinum or higher at OnePass.