Finnegan's now blocking until enactment is complete (which is essentially zero anyway). This stops the threadpool.

pull/2177/head
jMyles 2020-08-18 04:50:24 -07:00
parent 56ddc0c831
commit cd0d88a730
1 changed files with 4 additions and 0 deletions

View File

@ -101,11 +101,13 @@ policy = ALICE.grant(BOB,
expiration=policy_end_datetime)
assert policy.public_key == policy_pubkey
policy.publishing_mutex.block_until_complete()
# Alice puts her public key somewhere for Bob to find later...
alices_pubkey_bytes_saved_for_posterity = bytes(ALICE.stamp)
# ...and then disappears from the internet.
ALICE.disenchant()
del ALICE
#####################
@ -167,3 +169,5 @@ for counter, plaintext in enumerate(finnegans_wake):
# We show that indeed this is the passage originally encrypted by Enrico.
assert plaintext == delivered_cleartexts[0]
print("Retrieved: {}".format(delivered_cleartexts[0]))
BOB.disenchant()