We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 493a176 commit 341ddb9Copy full SHA for 341ddb9
codegen.py
@@ -119,7 +119,11 @@ def genMethodHasContent(m):
119
print "method_has_content(%s) -> %s;" % (m.erlangName(), str(m.hasContent).lower())
120
121
def genMethodIsSynchronous(m):
122
- print "is_method_synchronous(%s) -> %s;" % (m.erlangName(), str(m.isSynchronous).lower())
+ hasNoWait = "nowait" in fieldNameList(m.arguments)
123
+ if m.isSynchronous and hasNoWait:
124
+ print "is_method_synchronous(#%s{nowait = NoWait}) -> not(NoWait);" % (m.erlangName())
125
+ else:
126
+ print "is_method_synchronous(#%s{}) -> %s;" % (m.erlangName(), str(m.isSynchronous).lower())
127
128
def genMethodFieldTypes(m):
129
"""Not currently used - may be useful in future?"""
0 commit comments