@discardableResult - know if the result is indeed discarded

@discardableResult func doSomething() -> Bool {
    // does something
    return true
}

This function can be called in the following ways:

doSomething()
let didSucceed = doSomething()

Is there a way to differentiate the two from inside the doSomething() function, as in, is there a way to know if the caller is using the result?

@discardableResult - know if the result is indeed discarded
 
 
Q