Dear @Carlis,
thank you for sharing your situation with us.
As for your questions:
1. My question is how long will it take for me to get a residence permit???
---> there is not a real time limit in law for such a case, but it can take upto 6 months as the Ausländerbehörde has more cases than usually to handle.
2. Will the foreign office have to wait for the bamf to send a letter to them that my asyl has be closed??
--> Yes, the BAMF will send the Bescheid to the Ausländerbehörde and then they will send you an appointment.
I know waiting is very hard in particular with a Duldung but there are procedures and you have to follow them.
I hope we could assist you, if you need further assistance please reach out to the community.
Best regards,
Nilab