Pinning the wifi.connect to core 0 in esp 32

I want to connect my esp 32 to my wifi router in parallel to performing tasks......using my esp 32.....as esp can use dual-core........is there a way to achieve it by pinning the task of a wifi connection to the core 0.