public class CoroutineName
User-specified name of coroutine. This name is used in debugging mode. See newCoroutineContext for the description of coroutine debugging facilities.
Modifier and Type | Class and Description |
---|---|
static class |
CoroutineName.Key
Key for
class CoroutineName instance in the coroutine context. |
Modifier and Type | Field and Description |
---|---|
static CoroutineName.Key |
Key
Key for
class CoroutineName instance in the coroutine context. |
Constructor and Description |
---|
CoroutineName(java.lang.String name)
User-specified name of coroutine. This name is used in debugging mode.
See newCoroutineContext for the description of coroutine debugging facilities.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
component1()
User-defined coroutine name.
|
CoroutineName |
copy(java.lang.String name)
User-specified name of coroutine. This name is used in debugging mode.
See newCoroutineContext for the description of coroutine debugging facilities.
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
getName()
User-defined coroutine name.
|
int |
hashCode() |
java.lang.String |
toString()
Returns a string representation of the object.
|
public static CoroutineName.Key Key
Key for class CoroutineName
instance in the coroutine context.
class CoroutineName
public CoroutineName(java.lang.String name)
User-specified name of coroutine. This name is used in debugging mode. See newCoroutineContext for the description of coroutine debugging facilities.
name
- User-defined coroutine name.public java.lang.String toString()
Returns a string representation of the object.
public java.lang.String getName()
User-defined coroutine name.
public java.lang.String component1()
User-defined coroutine name.
public CoroutineName copy(java.lang.String name)
User-specified name of coroutine. This name is used in debugging mode. See newCoroutineContext for the description of coroutine debugging facilities.
public int hashCode()
public boolean equals(java.lang.Object p)