Sweep 2 Rail : Is is safe to use this API in Rhino8?

I’ve seen this function was deprecated in v8, is there any substitute method for this or there’s not a problem keeping using it?

The documentation says to use Rhino.Geometry.Brep.CreateFromSweep functions.

You’ll probably want CreateFromSweepInParts

Oh, thank you for helping.